public interface IPluginEditFragment
Modifier and Type | Field and Description |
---|---|
static String |
ARG_EXTRA_PARCELABLE_CURRENT_PLUGIN
Type:
Plugin (e.g. |
static String |
ARG_EXTRA_PARCELABLE_PREVIOUS_PLUGIN_INSTANCE_DATA
Type:
PluginInstanceData (e.g. |
Modifier and Type | Method and Description |
---|---|
void |
handleCancel(Plugin plugin)
Called when a plug-in is canceled.
|
void |
handleErrors(Plugin plugin,
EnumSet<PluginErrorEdit> error)
Called when a plug-in has an error.
|
void |
handleSave(Plugin plugin,
PluginInstanceData newPluginInstanceData)
Callback when a plug-in is ready to be saved.
|
static final String ARG_EXTRA_PARCELABLE_CURRENT_PLUGIN
Plugin
(e.g. Parcelable).
The plug-in currently being edited by this Fragment.
static final String ARG_EXTRA_PARCELABLE_PREVIOUS_PLUGIN_INSTANCE_DATA
PluginInstanceData
(e.g. Parcelable
).
Optional argument for the previously saved plug-in instance.
void handleSave(Plugin plugin, PluginInstanceData newPluginInstanceData)
After this method is called, the Fragment will be automatically removed.
plugin
- The plug-in.newPluginInstanceData
- The new plug-in instance data.void handleCancel(Plugin plugin)
After this method is called, the Fragment will be automatically removed.
plugin
- The plug-in.void handleErrors(Plugin plugin, EnumSet<PluginErrorEdit> error)
After this method is called, the Fragment will be automatically removed.
plugin
- The plug-inerror
- The errors that occurred.