java.lang.Object | ||
↳ | com.urbanairship.AirshipComponent | |
↳ | com.urbanairship.messagecenter.MessageCenter |
Airship Message Center.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | MessageCenter.OnShowMessageCenterListener | Listener for showing the message center. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | MESSAGE_DATA_SCHEME | Scheme used for @{code message:com.urbanairship.VIEW_RICH_PUSH_MESSAGE . |
|||||||||
String | VIEW_MESSAGE_CENTER_INTENT_ACTION | Intent action to view the message center. | |||||||||
String | VIEW_MESSAGE_INTENT_ACTION | Intent action to view a message. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.urbanairship.AirshipComponent
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Inbox |
getInbox()
Returns the inbox.
| ||||||||||
Predicate<Message> |
getPredicate()
Returns the default inbox predicate.
| ||||||||||
User |
getUser()
Returns the inbox user.
| ||||||||||
boolean |
onAirshipDeepLink(Uri uri)
Called to handle `uairship://` deep links.
| ||||||||||
static String |
parseMessageId(Intent intent)
Parses the message Id from a message center intent.
| ||||||||||
void |
setOnShowMessageCenterListener(MessageCenter.OnShowMessageCenterListener listener)
Sets the show message center listener.
| ||||||||||
void |
setPredicate(Predicate<Message> predicate)
Sets the default inbox predicate.
| ||||||||||
static MessageCenter |
shared()
Gets the shared Message Center instance.
| ||||||||||
void |
showMessageCenter(String messageId)
Called to show the message center for a specific message.
| ||||||||||
void |
showMessageCenter()
Called to show the message center.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Scheme used for @{code message:com.urbanairship.VIEW_RICH_PUSH_MESSAGE
.
Intent action to view the message center.
Intent action to view a message.
Returns the default inbox predicate.
Called to handle `uairship://` deep links.
uri | The deep link. |
---|
Parses the message Id from a message center intent.
intent | The intent. |
---|
null
.
Sets the show message center listener.
listener | The listener. |
---|
Sets the default inbox predicate.
predicate | The default inbox predicate. |
---|
Gets the shared Message Center instance.
Called to show the message center for a specific message. To show the message center, the SDK will try the following:
- The optionalImplicit intents will have the message ID encoded as the intent's data with the format @{code message:MessageCenter.OnShowMessageCenterListener
. - An implicit intent withcom.urbanairship.VIEW_RICH_PUSH_INBOX
. - If the message ID is provided, an implicit intent withcom.urbanairship.VIEW_MESSAGE_INTENT_ACTION
. - Finally it will fallback to the providedMessageCenterActivity
.
messageId | The message ID. |
---|
Called to show the message center. See showMessageCenter(String)
for more details.