belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NotificationCompat.MessagingStyle.Message
  public
  static
  final
  
  class
  NotificationCompat.MessagingStyle.Message
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.app.NotificationCompat.MessagingStyle.Message | 
Summary
| Public constructors | |
|---|---|
| 
      NotificationCompat.MessagingStyle.Message(CharSequence text, long timestamp, CharSequence sender)
      Constructor | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        String | 
      getDataMimeType()
      Get the MIME type of the data pointed to by the Uri | 
| 
        
        
        
        
        
        Uri | 
      getDataUri()
      Get the the Uri pointing to the content of the message. | 
| 
        
        
        
        
        
        Bundle | 
      getExtras()
      Get the extras Bundle for this message. | 
| 
        
        
        
        
        
        CharSequence | 
      getSender()
      Get the text used to display the contact's name in the messaging experience | 
| 
        
        
        
        
        
        CharSequence | 
      getText()
      Get the text to be used for this message, or the fallback text if a type and content Uri have been set | 
| 
        
        
        
        
        
        long | 
      getTimestamp()
      Get the time at which this message arrived in ms since Unix epoch | 
| 
        
        
        
        
        
        NotificationCompat.MessagingStyle.Message | 
      setData(String dataMimeType, Uri dataUri)
      Sets a binary blob of data and an associated MIME type for a message. | 
| Inherited methods | |
|---|---|
|  From
class 
  
    java.lang.Object
  
 | |
Public constructors
NotificationCompat.MessagingStyle.Message
NotificationCompat.MessagingStyle.Message (CharSequence text, 
                long timestamp, 
                CharSequence sender)Constructor
| Parameters | |
|---|---|
| text | CharSequence: ACharSequenceto be displayed as the message content | 
| timestamp | long: Time at which the message arrived in ms since Unix epoch | 
| sender | CharSequence: ACharSequenceto be used for displaying the name of the
 sender. Should benullfor messages by the current user, in which case
 the platform will insertgetUserDisplayName().
 Should be unique amongst all individuals in the conversation, and should be
 consistent during re-posts of the notification. | 
Public methods
getDataMimeType
String getDataMimeType ()
Get the MIME type of the data pointed to by the Uri
| Returns | |
|---|---|
| String | |
getDataUri
Uri getDataUri ()
Get the the Uri pointing to the content of the message. Can be null, in which case is used.
| Returns | |
|---|---|
| Uri | |
See also:
getExtras
Bundle getExtras ()
Get the extras Bundle for this message.
| Returns | |
|---|---|
| Bundle | |
getSender
CharSequence getSender ()
Get the text used to display the contact's name in the messaging experience
| Returns | |
|---|---|
| CharSequence | |
getText
CharSequence getText ()
Get the text to be used for this message, or the fallback text if a type and content Uri have been set
| Returns | |
|---|---|
| CharSequence | |
getTimestamp
long getTimestamp ()
Get the time at which this message arrived in ms since Unix epoch
| Returns | |
|---|---|
| long | |
setData
NotificationCompat.MessagingStyle.Message setData (String dataMimeType, Uri dataUri)
Sets a binary blob of data and an associated MIME type for a message. In the case where the platform doesn't support the MIME type, the original text provided in the constructor will be used.
| Parameters | |
|---|---|
| dataMimeType | String: The MIME type of the content. See
  for the list of supported MIME
 types on Android and Android Wear. | 
| dataUri | Uri: The uri containing the content whose type is given by the MIME type.
 
 | 
| Returns | |
|---|---|
| NotificationCompat.MessagingStyle.Message | this object for method chaining | 
- Annotations
- Interfaces- ActionBarDrawerToggle.Delegate
- ActionBarDrawerToggle.DelegateProvider
- ActivityCompat.OnRequestPermissionsResultCallback
- ActivityCompat.PermissionCompatDelegate
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- LoaderManager.LoaderCallbacks
- NotificationCompat.Action.Extender
- NotificationCompat.Extender
- SharedElementCallback.OnSharedElementsReadyListener
- TaskStackBuilder.SupportParentable
 
- Classes- ActionBarDrawerToggle
- ActivityCompat
- ActivityManagerCompat
- ActivityOptionsCompat
- AlarmManagerCompat
- AppLaunchChecker
- AppOpsManagerCompat
- BundleCompat
- DialogFragment
- Fragment
- Fragment.SavedState
- FragmentActivity
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentPagerAdapter
- FragmentStatePagerAdapter
- FragmentTabHost
- FragmentTransaction
- FrameMetricsAggregator
- JobIntentService
- ListFragment
- LoaderManager
- NavUtils
- NotificationCompat
- NotificationCompat.Action
- NotificationCompat.Action.Builder
- NotificationCompat.Action.WearableExtender
- NotificationCompat.BigPictureStyle
- NotificationCompat.BigTextStyle
- NotificationCompat.Builder
- NotificationCompat.CarExtender
- NotificationCompat.CarExtender.UnreadConversation
- NotificationCompat.CarExtender.UnreadConversation.Builder
- NotificationCompat.DecoratedCustomViewStyle
- NotificationCompat.InboxStyle
- NotificationCompat.MessagingStyle
- NotificationCompat.MessagingStyle.Message
- NotificationCompat.Style
- NotificationCompat.WearableExtender
- NotificationCompatExtras
- NotificationCompatSideChannelService
- NotificationManagerCompat
- RemoteInput
- RemoteInput.Builder
- ServiceCompat
- ShareCompat
- ShareCompat.IntentBuilder
- ShareCompat.IntentReader
- SharedElementCallback
- TaskStackBuilder
 
- Exceptions
