Udostępnij za pośrednictwem


MediaRoute2ProviderService.OnReleaseSession(Int64, String) Method

Definition

Called when the session should be released.

[Android.Runtime.Register("onReleaseSession", "(JLjava/lang/String;)V", "GetOnReleaseSession_JLjava_lang_String_Handler", ApiSince=30)]
public abstract void OnReleaseSession (long requestId, string sessionId);
[<Android.Runtime.Register("onReleaseSession", "(JLjava/lang/String;)V", "GetOnReleaseSession_JLjava_lang_String_Handler", ApiSince=30)>]
abstract member OnReleaseSession : int64 * string -> unit

Parameters

requestId
Int64

the ID of this request

sessionId
String

the ID of the session being released.

Attributes

Remarks

Called when the session should be released. A client of the session or system can request a session to be released.

After releasing the session, call #notifySessionReleased(String) with the ID of the released session.

Note: Calling #notifySessionReleased(String) will <em>NOT</em> trigger this method to be called.

Java documentation for android.media.MediaRoute2ProviderService.onReleaseSession(long, java.lang.String).

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.

Applies to