- target
- Target object
- sel
- Selector method to invoke on the target object.
The active display link that can be configured, read from and scheduled to deliver events.
You can configure the display link by setting the CoreAnimation.CADisplayLink.FrameInterval and CoreAnimation.CADisplayLink.Paused properties. Once you have done this, you need to add the display link to a run loop, which is the run loop that will be used to invoke the action method.
C# Example
void Setup ()
{
var link = UIScreen.CreateDisplayLink (this, new Selector ("callback")]
// The default is 1, we want updates only once every 2 frames instead:
link.FrameInterval = 2;
link.AddToRunLoop (NSRunLoop.CurrentRunLoop, NSRunLoop.NSDefaultRunLoopMode);
}
[Export ("callback")]
void WillRefresh ()
{
This method is invoked
}