One Logo Pool Ball
MediaPlayer · IOS API REFERENCE

MPRemoteCommand

class · iOS 7.1+ · SDK 27.1

class MPRemoteCommand

Members (3)

method · iOS 7.1+

removeTarget

TypeScript
removeTarget(target?: (unknown) | null): void
Swift declaration
func removeTarget(_ target: Any?)
get · iOS 7.1+

isEnabled

TypeScript
get isEnabled(): boolean
Swift declaration
var isEnabled: Bool { get set }
set · iOS 7.1+

isEnabled

TypeScript
set isEnabled(value: boolean)
Swift declaration
var isEnabled: Bool { get set }

Skipped declarations

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

MPRemoteCommand.addTarget(_:action:)

Objective-C selectors cannot cross the bridge.

MPRemoteCommand.removeTarget(_:action:)

Objective-C selectors cannot cross the bridge.

MPRemoteCommand.addTarget(handler:)

callback cannot propagate synchronous failure

MPRemoteCommand.init()

inherited init: clang: 'init' is unavailable

All MediaPlayer types →