UIAccelerometer.WeakDelegate Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An object that can respond to the delegate protocol for this type
public virtual Foundation.NSObject WeakDelegate { [Foundation.Export("delegate", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [Foundation.Export("setDelegate:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
member this.WeakDelegate : Foundation.NSObject with get, set
Property Value
The instance that will respond to events and data requests.
- Attributes
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.