MediaController.TransportControls.Prepare 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.
Request that the player prepare its playback.
[Android.Runtime.Register("prepare", "()V", "", ApiSince=24)]
public void Prepare ();
[<Android.Runtime.Register("prepare", "()V", "", ApiSince=24)>]
member this.Prepare : unit -> unit
- Attributes
Remarks
Request that the player prepare its playback. In other words, other sessions can continue to play during the preparation of this session. This method can be used to speed up the start of the playback. Once the preparation is done, the session will change its playback state to PlaybackState#STATE_PAUSED
. Afterwards, #play
can be called to start playback.
Java documentation for android.media.session.MediaController.TransportControls.prepare()
.
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.