Instance Method


Removes a target and action from a remote command object.


func removeTarget(_ target: Any, action: Selector?)



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


A selector identifying a method on the target. Specify NULL to remove all actions.


Call the removeTarget(_:action:) method to remove the specified target-action pair. Passing nil for target matches all targets and passing NULL for action matches all actions.

See Also

Handling Events

func addTarget(Any, action: Selector)

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

func removeTarget(Any?)

Removes a target from the remote command object.

enum MPRemoteCommandHandlerStatus

Constants indicating the status of a command.