public interface App
AppController
.AppDescriptor
,
AppController
Modifier and Type | Method and Description |
---|---|
AppView |
getView() |
void |
locationChanged(Location location)
Called when the location changes and the app is already running.
|
void |
openChooseDialog(UiContext overlayLayer,
String selectedId,
ChooseDialogCallback callback)
Open a dialog which enables a user to choose an item from the app.
|
void |
openChooseDialog(UiContext uiContext,
String targetTreeRootPath,
String selectedId,
ChooseDialogCallback callback) |
void |
start(Location location)
Called when the app is started.
|
void |
stop()
Called when the user stops the app.
|
void start(Location location)
location
- the location that triggered the app to be startedvoid locationChanged(Location location)
location
- the new locationvoid stop()
AppView getView()
void openChooseDialog(UiContext overlayLayer, String selectedId, ChooseDialogCallback callback)
overlayLayer
- The layer over which the opened dialog should be presented and be modal. See Shell, SubAppContext
, AppContext
.callback
- void openChooseDialog(UiContext uiContext, String targetTreeRootPath, String selectedId, ChooseDialogCallback callback)
Copyright © 2019 Magnolia International Ltd.. All rights reserved.