Android APIs
public static abstract class

MediaProjection.Callback

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

Class Overview

Callbacks for the projection session.

Summary

Public Constructors
MediaProjection.Callback()
Public Methods
void onStop()
Called when the MediaProjection session is no longer valid.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaProjection.Callback ()

Added in API level 21

Public Methods

public void onStop ()

Added in API level 21

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).