MPRemoteCommand.AddTarget Method
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.
Overloads
AddTarget(Func<MPRemoteCommandEvent,MPRemoteCommandHandlerStatus>) | |
AddTarget(NSObject, Selector) |
AddTarget(Func<MPRemoteCommandEvent,MPRemoteCommandHandlerStatus>)
[Foundation.Export("addTargetWithHandler:")]
public virtual Foundation.NSObject AddTarget (Func<MediaPlayer.MPRemoteCommandEvent,MediaPlayer.MPRemoteCommandHandlerStatus> handler);
abstract member AddTarget : Func<MediaPlayer.MPRemoteCommandEvent, MediaPlayer.MPRemoteCommandHandlerStatus> -> Foundation.NSObject
override this.AddTarget : Func<MediaPlayer.MPRemoteCommandEvent, MediaPlayer.MPRemoteCommandHandlerStatus> -> Foundation.NSObject
Parameters
Returns
- Attributes
Applies to
AddTarget(NSObject, Selector)
[Foundation.Export("addTarget:action:")]
public virtual void AddTarget (Foundation.NSObject target, ObjCRuntime.Selector action);
abstract member AddTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
override this.AddTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
Parameters
- target
- NSObject
- action
- Selector
- Attributes