
### SyneriseSource
This enum contains values which describe the source of campaign.

**Declared In:**  
`com.synerise.sdk.injector.callback.SyneriseSource`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-33">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-33-0" data-tab-group="tabgrp-33" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-33-1" data-tab-group="tabgrp-33">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-33-0" data-tab-group="tabgrp-33" data-tab-active="true">

```Java
public enum SyneriseSource
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-33-1" data-tab-group="tabgrp-33">

```Kotlin
public enum SyneriseSource
```

</div>
</div>


**Values:**

| Property | Description |
| --- | --- |
| **SIMPLE_PUSH** | Simple push campaign |
| **IN_APP_MESSAGE** | In-app message campaign |

---
---

### Campaign
Class model for campaigns.

**Declared In:**  
`com.synerise.sdk.injector.net.model.Campaign`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-34">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-34-0" data-tab-group="tabgrp-34" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-34-1" data-tab-group="tabgrp-34">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-34-0" data-tab-group="tabgrp-34" data-tab-active="true">

```Java
public class Campaign implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-34-1" data-tab-group="tabgrp-34">

```Kotlin
class Campaign : Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **hashId** | String | no | - | Campaign hash ID |
| **variantId** | int | no | - | Campaign variant's ID |
| **title** | String | no | - | Campaign title |
| **type** | String | no | - | Campaign type |



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves a value for the `hashId` parameter.


<pre><code class="language-java">public String getHashId()</code></pre>


---

This method retrieves a value for the `variantId` parameter.


<pre><code class="language-java">public int getVariantId()</code></pre>


---

This method retrieves a value for the `title` parameter.


<pre><code class="language-java">public String getTitle()</code></pre>


---

This method retrieves a value for the `type` parameter.


<pre><code class="language-java">public String getType()</code></pre>


---

---
---

### SynerisePushResponse
Class model for SynerisePushResponse.

**Declared In:**  
`com.synerise.sdk.injector.net.model.push.notification.SynerisePushResponse`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-35">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-35-0" data-tab-group="tabgrp-35" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-35-1" data-tab-group="tabgrp-35">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-35-0" data-tab-group="tabgrp-35" data-tab-active="true">

```Java
public class SynerisePushResponse
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-35-1" data-tab-group="tabgrp-35">

```Kotlin
class SynerisePushResponse
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **contentAvailable** | Boolean | no | - | Informs if content is available |
| **data** | SynerisePush | no | - | Synerise push data |
| **notification** | [SimpleNotification](/developers/mobile-sdk/class-reference/android/campaigns#simplenotification) | no | - | Synerise simple notification |



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method checks if content is available.


<pre><code class="language-java">public boolean isContentAvailable()</code></pre>


---

This method retrieves a value for the `data` parameter.


<pre><code class="language-java">public SyneriseData getData()</code></pre>


---

This method retrieves a value for the `notification` parameter.


<pre><code class="language-java">public SimpleNotification getNotification()</code></pre>


---

This method checks if the push is a simple push.


<pre><code class="language-java">public boolean isSimplePush()</code></pre>


---

---
---

### SimpleNotification
Class model for simple notification.

**Declared In:**  
`com.synerise.sdk.injector.net.model.push.notification.SimpleNotification`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-36">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-36-0" data-tab-group="tabgrp-36" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-36-1" data-tab-group="tabgrp-36">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-36-0" data-tab-group="tabgrp-36" data-tab-active="true">

```Java
public class SimpleNotification implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-36-1" data-tab-group="tabgrp-36">

```Kotlin
class SimpleNotification : Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **title** | String | no | - | Notification title |
| **body** | String | no | - | Notification body |




<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method checks if the notification has a title.


<pre><code class="language-java">public boolean hasTitle()</code></pre>


---

This method retrieves a value for the `title` parameter (notification title).


<pre><code class="language-java">public String getTitle()</code></pre>


---

This method checks if the notification has a body.


<pre><code class="language-java">public boolean hasBody()</code></pre>


---

This method retrieves a value for the `body` parameter (notification body).


<pre><code class="language-java">public String getBody()</code></pre>


---

---
---

### NotificationInfo
This enum contains values for a voucher code status.

**Declared In:**  
`com.synerise.sdk.injector.callback.model`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-37">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-37-0" data-tab-group="tabgrp-37" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-37-1" data-tab-group="tabgrp-37">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-37-0" data-tab-group="tabgrp-37" data-tab-active="true">

```Java
public class NotificationInfo
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-37-1" data-tab-group="tabgrp-37">

```Kotlin
public class NotificationInfo
```

</div>
</div>


#### Values

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **campaignHashId** | String | no | - | Identifier of the notification campaign. |
| **campaignTitle** | String | no | - | Identifier of the notification title. |
| **payload** | HashMap<String, String> | no | - | Payload of the notification. |

**Methods:**  

This method retrieves the value of the `campaignHashId` parameter.


<pre><code class="language-java">public String getCampaignHashId()</code></pre>


---

This method defines the value of the `campaignHashId` parameter.


<pre><code class="language-java">public void setCampaignHashId(String campaignHashId)</code></pre>


---

This method retrieves the value of the `CampaignTitle` parameter.


<pre><code class="language-java">public String getCampaignTitle()</code></pre>


---

This method defines the value of the `CampaignTitle` parameter.


<pre><code class="language-java">public void setCampaignTitle(String campaignTitle)</code></pre>


---

This method retrieves the contents of the `payload` parameter.


<pre><code class="language-java">public HashMap&lt;String, String&gt; getPayload()</code></pre>


---

This method defines the contents of the `payload` parameter.


<pre><code class="language-java">public void setPayload(HashMap&lt;String, String&gt; payload)</code></pre>


---

---
---

### PushRegistrationOrigin
This enum contains values for the `origin` parameter of push registration listener methods.

**Declared In:**  
`com.synerise.sdk.core.types.enums`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-38">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-38-0" data-tab-group="tabgrp-38" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-38-1" data-tab-group="tabgrp-38">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-38-0" data-tab-group="tabgrp-38" data-tab-active="true">

```Java
public enum PushRegistrationOrigin
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-38-1" data-tab-group="tabgrp-38">

```Kotlin
public enum PushRegistrationOrigin
```

</div>
</div>


**Values:**  

| Property | Value | Description |
| --- | --- | --- |
| **APP_STARTED** | "APP_STARTED" | After a `client.applicationStarted` event is sent. |
| **CLIENT_CONTEXT_CHANGE** | "CLIENT_CONTEXT_CHANGE" | After the client context changes. |
| **PERIODIC_JOB** | "PERIODIC_JOB" | After a periodic job of a background task starts. |
| **SECURITY_REASON** | "SECURITY_REASON" | After a security threat |

**Methods:**  
There are no methods.

---

---
---

### TemplateBanner
Class model for banners.

**Declared In:**  
`com.synerise.sdk.injector.net.model.push.banner.TemplateBanner`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-39">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-39-0" data-tab-group="tabgrp-39" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-39-1" data-tab-group="tabgrp-39">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-39-0" data-tab-group="tabgrp-39" data-tab-active="true">

```Java
public class TemplateBanner extends BasePageMapper implements Parcelable, Validable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-39-1" data-tab-group="tabgrp-39">

```Kotlin
class TemplateBanner : BasePageMapper(), Parcelable, Validable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **campaign** | [Campaign](/developers/mobile-sdk/class-reference/android/campaigns#campaign) | no | - | Campaign class |
| **trigger** | String | yes | - | Banner trigger |
| **notification** | [SimpleNotification](/developers/mobile-sdk/class-reference/android/campaigns#simplenotification) | no | - | Notification class |
| **autoDisappear** | [AutoDisappear](/developers/mobile-sdk/class-reference/android/campaigns#autodisappear) | no | - | Auto disappear |
| **page** | NetGenericPageData | yes | - | Page data |



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves the value of the `campaign` parameter.


<pre><code class="language-java">public Campaign getCampaign()</code></pre>


---

This method retrieves the value of the `value` object.


<pre><code class="language-java">public Object getValue()</code></pre>


---

This method checks if a banner has a trigger.


<pre><code class="language-java">public boolean hasTrigger()</code></pre>


---

This method retrieves the `trigger` parameter from a banner.


<pre><code class="language-java">public String getTrigger()</code></pre>


---

This method retrieves the value of the `notification` parameter.


<pre><code class="language-java">public SimpleNotification getNotification()</code></pre>


---

This method retrieves the value of the `page` parameter.


<pre><code class="language-java">public PageItem getPage()</code></pre>


---

This method retrieves the value of the `autodisappear` parameter.


<pre><code class="language-java">public AutoDisappear getAutoDisappear()</code></pre>


---

---
---

### SilentCommand
Class model for silent command.

**Declared In:**  
`com.synerise.sdk.injector.SilentCommand`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-40">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-40-0" data-tab-group="tabgrp-40" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-40-1" data-tab-group="tabgrp-40">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-40-0" data-tab-group="tabgrp-40" data-tab-active="true">

```Java
public class SilentCommand implements Validable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-40-1" data-tab-group="tabgrp-40">

```Kotlin
class SilentCommand : Validable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **className** | String | no | - | Class name |
| **methodName** | String | no | - | Method name |
| **methodParameterList** | List<[MethodParameter](/developers/mobile-sdk/class-reference/android/campaigns#methodparameter)> | no | - | Method parameters |



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves a value of the `className` parameter.


<pre><code class="language-java">public String getClassName()</code></pre>


---

This method retrieves a value of the `methodName` parameter.


<pre><code class="language-java">public String getMethodName()</code></pre>


---

This method retrieves a list of values of the `methodParameters` parameter.


<pre><code class="language-java">public List&lt;MethodParameter&gt; getMethodParameterList()</code></pre>


---

---
---

### MethodParameter
Class model for method parameter.

**Declared In:**  
`com.synerise.sdk.injector.MethodParameter`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-41">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-41-0" data-tab-group="tabgrp-41" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-41-1" data-tab-group="tabgrp-41">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-41-0" data-tab-group="tabgrp-41" data-tab-active="true">

```Java
public class MethodParameter implements Validable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-41-1" data-tab-group="tabgrp-41">

```Kotlin
class MethodParameter : Validable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **className** | String | no | - | Class name |
| **value** | Object | no | - | Parameter value |
| **position** | int | no | - | Parameter position |



<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method retrieves a value of the `className` parameter.


<pre><code class="language-java">public String getClassName()</code></pre>


---

This method retrieves a value of the `value` parameter.


<pre><code class="language-java">public Object getValue()</code></pre>


---

This method retrieves a value of the `position` parameter.


<pre><code class="language-java">public int getPosition()</code></pre>


---

---
---

### AutoDisappear
Class model for AutoDisappear.

**Declared In:**  
`com.synerise.sdk.injector.net.model.push.model.banner.AutoDisappear`

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-42">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-42-0" data-tab-group="tabgrp-42" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-42-1" data-tab-group="tabgrp-42">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-42-0" data-tab-group="tabgrp-42" data-tab-active="true">

```Java
public class AutoDisappear implements Serializable
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-42-1" data-tab-group="tabgrp-42">

```Kotlin
class AutoDisappear : Serializable
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **isEnabled** | Boolean | no | - | Informs if auto disappear is enabled |
| **timeout** | int | no | - | Disappear timeout |




<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Initializers:**  

There are no initializers.

**Methods:**  

This method checks if auto disappear is enabled.


<pre><code class="language-java">public boolean isEnabled()</code></pre>


---

This method retrieves the value of the `timeout` parameter.


<pre><code class="language-java">public int getTimeout()</code></pre>


---

---
---

### InAppMessageData
Model for in-app messaging communication. 

**Declared In:**  
com.synerise.sdk.injector.inapp.InAppMessageData

**Declaration:**  

<div class="content-tabs code-tabs" data-tab-group="tabgrp-43">
<div class="tab-buttons"><button class="tab-button" data-tab-id="tabgrp-43-0" data-tab-group="tabgrp-43" data-tab-active="true">Java</button><button class="tab-button" data-tab-id="tabgrp-43-1" data-tab-group="tabgrp-43">Kotlin</button></div>

<div class="tab-panel" data-tab-id="tabgrp-43-0" data-tab-group="tabgrp-43" data-tab-active="true">

```Java
public InAppMessageData(String campaignHash, String variantId, HashMap<String, Object> additionalParameters, Boolean isTest)
```

</div>

<div class="tab-panel" data-tab-id="tabgrp-43-1" data-tab-group="tabgrp-43">

```Kotlin
public InAppMessageData(campaignHash: String, variantId: String, additionalParameters: HashMap<String, Object> , isTest: Boolean)
```

</div>
</div>


**Properties:**  

| Property | Type | Optional | Default | Description |
| --- | --- | --- | --- | --- |
| **campaignHash** | String | no | Identifier of the in-app message campaign. | | **variantId** | String | no | Identifier of the in-app message campaign variant. |
| **additionalParameters** | HashMap<String, Object> | yes | Parameters additionally provided by the campaign. | | **url** | URL | yes | URL value from the action of the activity. |
| **deeplink** | String | yes | Deep link value from the action of the activity. | | **isTest** | Bool | no | Specifies if the object is from a test campaign. |


<div class="admonition admonition-note"><div class="admonition-icon"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2.5"><path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg></div><div class="admonition-body"><div class="admonition-content">

All the properties above are accessible by using getters.

</div></div></div>


**Methods:**  
There are only getters for the above properties.

---
---

### SyneriseMethod

Enum with a list of SDK methods that can be called from JavaScript in an in-app.

See [Using in-app template builder](/docs/campaign/in-app-messages/creating-inapp-templates/creating-inapp-template#use-a-mobile-sdk-method)