AppViewOverlay

class AppViewOverlay(val view: View, val desiredType: ViewOverlayAttacher.OverlayType = ViewOverlayAttacher.OverlayType.GLOBAL)

Represents a view that can is attached to the views of an app or attached to the system's window if the device has permissions to do it.

Constructors

Link copied to clipboard
constructor(view: View, desiredType: ViewOverlayAttacher.OverlayType = ViewOverlayAttacher.OverlayType.GLOBAL)

Properties

Link copied to clipboard

the request type of Overlay, by default is GLOBAL and fallbacks to CURRENT_APPLICATION

Link copied to clipboard
val view: View

the View that will be placed upon app or system's window.

Functions

Link copied to clipboard
fun hide()

Hides the screen share overlay.

Link copied to clipboard
fun show(context: Context)

Shows the overlay view. If the context is an Activity the overlay will be attached to its decor view otherwise if the context is an application context the view it will be attached to the system's window.