Callback

abstract class Callback
kotlin.Any
   ↳ android.media.projection.MediaProjection.Callback

Callbacks for the projection session.
Requires API level 21 (Android 5.0, Lollipop)

Summary

Public constructors

Public methods
open Unit

Called when the MediaProjection session is no longer valid.

Public constructors

<init>

Callback()

Public methods

onStop

added in API level 21
open fun onStop(): Unit

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. android.hardware.display.VirtualDisplays).


Requires API level 21 (Android 5.0, Lollipop)