MPRemoteCommand.AddTarget 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
参数
返回
- 属性
适用于
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
参数
- target
- NSObject
- action
- Selector
- 属性