CustomInputStream: [Un]scheduleInCFRunLoop has been removed from Xamarin.iOS, so export manually here.

This commit is contained in:
Rolf Bjarne Kvinge 2013-04-24 22:58:46 +02:00
Родитель aa8968ca40
Коммит b3e630e561
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -70,13 +70,15 @@ namespace InputStreamTest
// Just call the base implementation, which knows how to handle everything.
return base.SetCFClientFlags (inFlags, inCallback, inContextPtr);
}
public override void ScheduleInCFRunLoop (CFRunLoop runloop, NSString mode)
[Export ("_scheduleInCFRunLoop:forMode:")]
public void ScheduleInCFRunLoop (CFRunLoop runloop, NSString mode)
{
Notify (CFStreamEventType.HasBytesAvailable);
}
public override void UnscheduleInCFRunLoop (CFRunLoop runloop, NSString mode)
[Export ("_unscheduleFromCFRunLoop:forMode:")]
public void UnscheduleInCFRunLoop (CFRunLoop runloop, NSString mode)
{
// Nothing to do here
}