gh-pages / com.nextfaze.devfun.menu.controllers / CogOverlay

CogOverlay

class CogOverlay : MenuController (source)

Controls the floating cog overlay.

Manages/requests permissions as needed, and hides/shows when app view context changes.

Background color/tint of the cog can be changed by declaring (overriding) a color resource df_menu_cog_tint

e.g.

<color name="df_menu_cog_tint">#77FF0000</color> <!-- red -->

Constructors

Name Summary
<init> CogOverlay(context: Context, activityProvider: ActivityProvider, overlays: OverlayManager)
Controls the floating cog overlay.

Properties

Name Summary
actionDescription val actionDescription: CharSequence?
A human-readable description of how this controller is used.
title val title: String
A human-readable description of the name of this controller.

Functions

Name Summary
attach fun attach(developerMenu: DeveloperMenu): Unit
Called when this controller is being attached/initialized to a DeveloperMenu.
detach fun detach(): Unit
Called when this controller is being detached/removed from a DeveloperMenu.
onDismissed fun onDismissed(): Unit
Called when DeveloperMenu is dismissed.
onShown fun onShown(): Unit
Called when DeveloperMenu is shown.