Package com.aliucord.entities
Class Plugin.SettingsTab
-
- All Implemented Interfaces:
public class Plugin.SettingsTab
Plugin SettingsTab
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
Plugin.SettingsTab.Type
The type of this SettingsTab. PAGE is a dedicated page, BOTTOM_SHEET is a popup at the bottom of the screen.
public interface
Plugin.SettingsTab.SettingsPage
-
Field Summary
Fields Modifier and Type Field Description public Plugin.SettingsTab.Type
type
public Class<out AppFragment>
page
public Class<AppBottomSheet>
bottomSheet
public Array<Object>
args
-
Constructor Summary
Constructors Constructor Description Plugin.SettingsTab(Class<out AppFragment> settings)
Creates a SettingsTab with a dedicated page Plugin.SettingsTab(Class<out Object> settings, Plugin.SettingsTab.Type type)
Creates a SettingsTab of the specified type
-
Method Summary
Modifier and Type Method Description Plugin.SettingsTab
withArgs(Array<Object> args)
Sets the constructor args that will be passed to this SettingsTab -
-
Constructor Detail
-
Plugin.SettingsTab
Plugin.SettingsTab(Class<out AppFragment> settings)
Creates a SettingsTab with a dedicated page- Parameters:
settings
- The settings page fragment
-
Plugin.SettingsTab
Plugin.SettingsTab(Class<out Object> settings, Plugin.SettingsTab.Type type)
Creates a SettingsTab of the specified type- Parameters:
settings
- The component to use for this SettingsTabtype
- The Type of this SettingsTab
-
-
Method Detail
-
withArgs
Plugin.SettingsTab withArgs(Array<Object> args)
Sets the constructor args that will be passed to this SettingsTab
- Parameters:
args
- The arguments that should be passed
-
-
-
-