public interface

MediaSessionCompat.RegistrationCallback

 androidx.media3.session.legacy.MediaSessionCompat.RegistrationCallback

Overview

Callback to be called when a controller has registered or unregistered controller callback.

Summary

Methods
public voidonCallbackRegistered(int callingPid, int callingUid)

Called when a MediaControllerCompat registered callback.

public voidonCallbackUnregistered(int callingPid, int callingUid)

Called when a MediaControllerCompat unregistered callback.

Methods

public void onCallbackRegistered(int callingPid, int callingUid)

Called when a MediaControllerCompat registered callback.

Parameters:

callingPid: PID from Binder#getCallingPid()
callingUid: UID from Binder#getCallingUid()

public void onCallbackUnregistered(int callingPid, int callingUid)

Called when a MediaControllerCompat unregistered callback.

Parameters:

callingPid: PID from Binder#getCallingPid()
callingUid: UID from Binder#getCallingUid()