Instance Method


Removes a target from the remote command object.


func removeTarget(_ target: Any?)



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


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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software