Class Info |
|---|
public class AppMessage Message object class. |
Qualifier and Type | Method Name and Description |
|---|---|
long | getId() Obtains the ID of an in-app message. |
| Obtains the message type. | |
long | Obtains the start timestamp of a message. |
long | Obtains the end timestamp of a message. |
int | Obtains the display frequency type of a message. |
int | Obtains display times of a message. |
int | Checks whether an in-app message is a test message. |
java.util.List<String> | Obtains IDs of trigger events. |
Method |
|---|
public long getId() Obtains the ID of an in-app message. |
Return
Type | Description |
|---|---|
long | Message ID. |
Method |
|---|
public abstract MessageType getMessageType() Obtains the message type. |
Return
Type | Description |
|---|---|
Message type. The options are BANNER, CARD, and PICTURE. |
Method |
|---|
public long getStartTime() Obtains the start timestamp of a message. |
Return
Type | Description |
|---|---|
long | Start timestamp of a message, accurate to milliseconds. |
Method |
|---|
public long getEndTime() Obtains the end timestamp of a message. |
Return
Type | Description |
|---|---|
long | End timestamp of a message, accurate to milliseconds. |
Method |
|---|
public int getFrequencyType() Obtains the display frequency type of a message. |
Return
Type | Description |
|---|---|
int | Display frequency type of a message.
|
Method |
|---|
public int getFrequencyValue() Obtains display times of a message. |
Return
Type | Description |
|---|---|
int | Display times of an in-app message. This parameter is valid only when getFrequencyType is set to 2 or 3. |
Method |
|---|
public int getTestFlag() Checks whether an in-app message is a test message. |
Return
Type | Description |
|---|---|
int | Whether an in-app message is a test message.
|
Method |
|---|
public List<String> getTriggerEvents() Obtains IDs of trigger events. |
Return
Type | Description |
|---|---|
List<String> | IDs of trigger events. NOTE: The App Messaging SDK matches an event ID with the trigger event type of an in-app message. If the ID is in TriggerEvent, the message will be displayed. |