Instance Method

removeTarget(_:)

Removes a target from the remote command object.

Declaration

func removeTarget(_ target: Any?)

Parameters

target

The object that currently is a recipient of action messages sent by this object. Specify nil to remove all targets.

Discussion

Call the removeTarget(_:) method to remove the specified target and all actions associated with the target.

See Also

Handling Events

func addTarget(Any, action: Selector)

Adds a target object to be called when an event is received.

func removeTarget(Any, action: Selector?)

Removes a target and action from a remote command object.

enum MPRemoteCommandHandlerStatus

Constant indicating the status of a command.