-
public interface CustomTemplatePresenter<C extends CustomTemplateContext>Base interface for template presenters. See TemplatePresenter and FunctionPresenter.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonPresent(C context)Called when a CustomTemplate should be presented or a function should be executed. -
-
Method Detail
-
onPresent
abstract Unit onPresent(C context)
Called when a CustomTemplate should be presented or a function should be executed. For visual templates (code templates or functions with CustomTemplate.isVisual
= true): Implementing classes should use the provided CustomTemplateContext methods setPresented and setDismissed to notify the SDK of the state of the template invocation. Only one visual template or other InApp message can be displayed at a time by the SDK and no new messages can be shown until the current one is dismissed.
-
-
-
-