Added in API level 37

AppContentProjectionSession


public class AppContentProjectionSession
extends Object

java.lang.Object
   ↳ android.media.projection.AppContentProjectionSession


Represents a media projection session where the application receiving an instance of this class is sharing its own content.

The application must use this class to notify if the sharing session terminates from its side (e.g. the shared content is not available anymore).

Summary

Public methods

boolean isAudioRequested()

If true, this means that the user has requested the audio to be shared along with the app content.

void notifySessionStop()

Notify the system that the content shared is not available anymore and the session must be stopped.

Inherited methods

Public methods

isAudioRequested

Added in API level 37
public boolean isAudioRequested ()

If true, this means that the user has requested the audio to be shared along with the app content.

Returns
boolean

notifySessionStop

Added in API level 37
public void notifySessionStop ()

Notify the system that the content shared is not available anymore and the session must be stopped.