-
public class CustomTemplateContextRepresentation of the context around an invocation of a CustomTemplate. Use the
getmethods to obtain the current values of the arguments. Use setPresented and setDismissed to notify the SDK of the current state of this invocation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCustomTemplateContext.TemplateContextpublic final classCustomTemplateContext.FunctionContext
-
Field Summary
Fields Modifier and Type Field Description private final StringtemplateName
-
Method Summary
Modifier and Type Method Description final StringgetTemplateName()final StringgetString(String name)Retrieve a String argument by name. final BooleangetBoolean(String name)Retrieve a Boolean argument by name. final BytegetByte(String name)Retrieve a Byte argument by name. final ShortgetShort(String name)Retrieve a Short argument by name. final IntegergetInt(String name)Retrieve a Int argument by name. final LonggetLong(String name)Retrieve a Long argument by name. final FloatgetFloat(String name)Retrieve a Float argument by name. final DoublegetDouble(String name)Retrieve a Double argument by name. final Map<String, Object>getMap(String name)Retrieve a map of all arguments under name. final StringgetFile(String name)Retrieve an absolute file path argument by name. UnitsetPresented()Notify the SDK that the current CustomTemplate is presented. final UnitsetDismissed()Notify the SDK that the current CustomTemplate is dismissed. StringtoString()-
-
Method Detail
-
getTemplateName
final String getTemplateName()
-
getBoolean
final Boolean getBoolean(String name)
-
getMap
final Map<String, Object> getMap(String name)
Retrieve a map of all arguments under name. Map arguments will be combined with dot notation arguments. All values are converted to their defined type in the CustomTemplate. Action arguments are mapped to their name as String. Returns
nullif no arguments are found for the requested map.
-
setPresented
Unit setPresented()
Notify the SDK that the current CustomTemplate is presented.
-
setDismissed
final Unit setDismissed()
Notify the SDK that the current CustomTemplate is dismissed. The current CustomTemplate is considered to be visible to the user until this method is called. Since the SDK can show only one InApp message at a time, all other messages will be queued until the current one is dismissed.
-
-
-
-