RemoteController.IOnClientUpdateListener.OnClientPlaybackStateUpdate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called whenever the playback state has changed, and playback position and speed are known.
[Android.Runtime.Register("onClientPlaybackStateUpdate", "(IJJF)V", "GetOnClientPlaybackStateUpdate_IJJFHandler:Android.Media.RemoteController/IOnClientUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnClientPlaybackStateUpdate (Android.Media.RemoteControlPlayState state, long stateChangeTimeMs, long currentPosMs, float speed);
[<Android.Runtime.Register("onClientPlaybackStateUpdate", "(IJJF)V", "GetOnClientPlaybackStateUpdate_IJJFHandler:Android.Media.RemoteController/IOnClientUpdateListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnClientPlaybackStateUpdate : Android.Media.RemoteControlPlayState * int64 * int64 * single -> unit
Parameters
- state
- RemoteControlPlayState
one of the playback states authorized
in RemoteControlClient#setPlaybackState(int)
.
- stateChangeTimeMs
- Int64
the system time at which the state change was reported,
expressed in ms. Based on android.os.SystemClock#elapsedRealtime()
.
- currentPosMs
- Int64
a positive value for the current media playback position expressed in ms, a negative value if the position is temporarily unknown.
- speed
- Single
a value expressed as a ratio of 1x playback: 1.0f is normal playback,
2.0f is 2x, 0.5f is half-speed, -2.0f is rewind at 2x speed. 0.0f means nothing is
playing (e.g. when state is RemoteControlClient#PLAYSTATE_ERROR
).
- Attributes
Remarks
Called whenever the playback state has changed, and playback position and speed are known.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.