Code example for RemoteControlClient

Methods: setPlaybackState

6
	} 
 
	@TargetApi(14) 
	public void removeLockscreenControls() { 
		if (_remoteControlClient != null)
			_remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);
	} 
 
	@TargetApi(14) 
	public void setLockscreenPaused() { 
		if (_remoteControlClient == null)
			return; 
		_remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PAUSED);
	} 
 
	@TargetApi(14) 
	public void setLockscreenPlaying() { 
		if (_remoteControlClient == null)
			return; 
		_remoteControlClient.setPlaybackState(RemoteControlClient.PLAYSTATE_PLAYING);
	}