belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
NotificationCompat.CarExtender.UnreadConversation.Builder
  public
  static
  
  
  class
  NotificationCompat.CarExtender.UnreadConversation.Builder
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.support.v4.app.NotificationCompat.CarExtender.UnreadConversation.Builder | 
Builder class for NotificationCompat.CarExtender.UnreadConversation objects.
Summary
Public constructors | |
|---|---|
      
      NotificationCompat.CarExtender.UnreadConversation.Builder(String name)
      
      
        Constructs a new builder for   | 
  |
Public methods | |
|---|---|
        
        
        
        
        
        NotificationCompat.CarExtender.UnreadConversation.Builder
     | 
  
    
      
      addMessage(String message)
      
      
        Appends a new unread message to the list of messages for this conversation.  | 
  
        
        
        
        
        
        NotificationCompat.CarExtender.UnreadConversation
     | 
  
    
      
      build()
      
      
        Builds a new unread conversation object.  | 
  
        
        
        
        
        
        NotificationCompat.CarExtender.UnreadConversation.Builder
     | 
  
    
      
      setLatestTimestamp(long timestamp)
      
      
        Sets the timestamp of the most recent message in an unread conversation.  | 
  
        
        
        
        
        
        NotificationCompat.CarExtender.UnreadConversation.Builder
     | 
  
    
      
      setReadPendingIntent(PendingIntent pendingIntent)
      
      
        Sets the pending intent that will be sent once the messages in this notification are read.  | 
  
        
        
        
        
        
        NotificationCompat.CarExtender.UnreadConversation.Builder
     | 
  
    
      
      setReplyAction(PendingIntent pendingIntent, RemoteInput remoteInput)
      
      
        Sets the pending intent and remote input which will convey the reply to this notification.  | 
  
Inherited methods | |
|---|---|
  
    
  
    java.lang.Object
  
 | |
Public constructors
NotificationCompat.CarExtender.UnreadConversation.Builder
NotificationCompat.CarExtender.UnreadConversation.Builder (String name)
Constructs a new builder for NotificationCompat.CarExtender.UnreadConversation.
| Parameters | |
|---|---|
name | 
        
          String: The name of the other participant in the conversation.
 | 
      
Public methods
addMessage
NotificationCompat.CarExtender.UnreadConversation.Builder addMessage (String message)
Appends a new unread message to the list of messages for this conversation. The messages should be added from oldest to newest.
| Parameters | |
|---|---|
message | 
        
          String: The text of the new unread message. | 
      
| Returns | |
|---|---|
NotificationCompat.CarExtender.UnreadConversation.Builder | 
        This object for method chaining. | 
build
NotificationCompat.CarExtender.UnreadConversation build ()
Builds a new unread conversation object.
| Returns | |
|---|---|
NotificationCompat.CarExtender.UnreadConversation | 
        The new unread conversation object. | 
setLatestTimestamp
NotificationCompat.CarExtender.UnreadConversation.Builder setLatestTimestamp (long timestamp)
Sets the timestamp of the most recent message in an unread conversation. If a messaging notification has been posted by your application and has not yet been cancelled, posting a later notification with the same id and tag but without a newer timestamp may result in Android Auto not displaying a heads up notification for the later notification.
| Parameters | |
|---|---|
timestamp | 
        
          long: The timestamp of the most recent message in the conversation. | 
      
| Returns | |
|---|---|
NotificationCompat.CarExtender.UnreadConversation.Builder | 
        This object for method chaining. | 
setReadPendingIntent
NotificationCompat.CarExtender.UnreadConversation.Builder setReadPendingIntent (PendingIntent pendingIntent)
Sets the pending intent that will be sent once the messages in this notification are read.
| Parameters | |
|---|---|
pendingIntent | 
        
          PendingIntent: The pending intent to use. | 
      
| Returns | |
|---|---|
NotificationCompat.CarExtender.UnreadConversation.Builder | 
        This object for method chaining. | 
setReplyAction
NotificationCompat.CarExtender.UnreadConversation.Builder setReplyAction (PendingIntent pendingIntent, RemoteInput remoteInput)
Sets the pending intent and remote input which will convey the reply to this notification.
| Parameters | |
|---|---|
pendingIntent | 
        
          PendingIntent: The pending intent which will be triggered on a reply. | 
      
remoteInput | 
        
          RemoteInput: The remote input parcelable which will carry the reply. | 
      
| Returns | |
|---|---|
NotificationCompat.CarExtender.UnreadConversation.Builder | 
        This object for method chaining. | 
See also:
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