GLKView.WeakDelegate GLKView.WeakDelegate Property

Definition

An object that can respond to the delegate protocol for this type

[get: Foundation.Export("delegate", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
[set: Foundation.Export("setDelegate:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)]
public virtual Foundation.NSObject WeakDelegate { get; set; }
member this.WeakDelegate : Foundation.NSObject with get, set

Property Value

The instance that will respond to events and data requests.

Remarks

The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.

When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events

Methods must be decorated with the [Export ("selectorName")] attribute to respond to each method from the protocol. Alternatively use the Delegate method which is strongly typed and does not require the [Export] attributes on methods.

Applies to