Most visited

Recently visited

Added in API level 21

MediaProjection.Callback

public static abstract class MediaProjection.Callback
extends Object

java.lang.Object
   ↳ android.media.projection.MediaProjection.Callback


Callbacks for the projection session.

Summary

Public constructors

MediaProjection.Callback()

Public methods

void onStop()

Called when the MediaProjection session is no longer valid.

Inherited methods

From class java.lang.Object

Public constructors

MediaProjection.Callback

Added in API level 21
MediaProjection.Callback ()

Public methods

onStop

Added in API level 21
void onStop ()

Called when the MediaProjection session is no longer valid.

Once a MediaProjection has been stopped, it's up to the application to release any resources it may be holding (e.g. VirtualDisplays).

Hooray!