NewTabPageShortcutPlugin

interface NewTabPageShortcutPlugin : ActivePlugin

This class is used to provide each of the Shortcuts that build the Shortcut section in New Tab Page Implementation of https://app.asana.com/0/1174433894299346/12070643725750

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getShortcut(): NewTabShortcut

This method returns a NewTabShortcut that will be used as the Shortcuts content

Link copied to clipboard
open suspend fun isActive(): Boolean
Link copied to clipboard
abstract suspend fun isUserEnabled(): Boolean

This method returns a Boolean that shows if the plugin is enabled manually by the user

Link copied to clipboard
abstract fun onClick(context: Context)
Link copied to clipboard
abstract suspend fun setUserEnabled(enabled: Boolean)

Toggle shortcut visibility Used from the New Tab Settings screen