plugin / com.github.shadowsocks.plugin / HelpActivity

HelpActivity

abstract class HelpActivity : OptionsCapableActivity

Base class for a help activity. A help activity is started when user taps help when configuring options for your plugin. To create a help activity, just extend this class, and add it to your manifest like this:

Constructors

<init>

HelpActivity()

Base class for a help activity. A help activity is started when user taps help when configuring options for your plugin. To create a help activity, just extend this class, and add it to your manifest like this:

Functions

onInitializePluginOptions

open fun onInitializePluginOptions(options: PluginOptions): Unit

Populate args to your user interface.

Inherited Functions

onPostCreate

open fun onPostCreate(savedInstanceState: Bundle?): Unit

pluginOptions

fun pluginOptions(intent: Intent = this.intent): PluginOptions

Inheritors

HelpCallback

abstract class HelpCallback : HelpActivity

HelpCallback is an HelpActivity but you just need to produce a CharSequence help message instead of having to provide UI. To create a help callback, just extend this class, implement abstract methods, and add it to your manifest following the same procedure as adding a HelpActivity.