CADisplayLink.Create Method

Definition

Overloads

Create(Action)

Registers the delegate to be invoked every time the display is about to be updated.

Create(NSObject, Selector)

Objective-C style registeration of the method to be invoked every time the display is about to be updated.

Registers the delegate to be invoked every time the display is about to be updated.

public static CoreAnimation.CADisplayLink Create (Action action);
static member Create : Action -> CoreAnimation.CADisplayLink

Parameters

action
Action

Method to invoke on each screen refresh.

Returns

The DisplayLink object that will invoke the specified method on each screen update.

Remarks

Once you create the display link, you must add the handler to the runloop.

Applies to

Objective-C style registeration of the method to be invoked every time the display is about to be updated.

[Foundation.Export("displayLinkWithTarget:selector:")]
public static CoreAnimation.CADisplayLink Create (Foundation.NSObject target, ObjCRuntime.Selector sel);
static member Create : Foundation.NSObject * ObjCRuntime.Selector -> CoreAnimation.CADisplayLink

Parameters

target
NSObject

Target object to invoke the selector on.

sel
Selector

Selector to invoke.

Returns

The DisplayLink object that will invoke the specified method on each screen update.

Attributes

Remarks

With C# you can use the Create overload that takes a NSAction as it can be used with lambdas.

Once you create the display link, you must add the handler to the runloop.

Applies to