Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

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

Public constructors

MediaProjection.Callback

added in API level 21
public MediaProjection.Callback ()

Public methods

onStop

added in API level 21
public 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).