PeopleManager
  public
  
  final
  
  class
  PeopleManager
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | android.app.people.PeopleManager | 
This class allows interaction with conversation and people data.
 
 Restricted for SDK Runtime environment in API level 34.
Summary
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      addOrUpdateStatus(String conversationId, ConversationStatus status)
      Sets or updates a  | 
| 
        
        
        
        
        
        void | 
      clearStatus(String conversationId, String statusId)
      Unpublishes a given status from the given conversation. | 
| 
        
        
        
        
        
        void | 
      clearStatuses(String conversationId)
      Removes all published statuses for the given conversation. | 
| 
        
        
        
        
        
        List<ConversationStatus> | 
      getStatuses(String conversationId)
      Returns all of the currently published statuses for a given conversation. | 
| Inherited methods | |
|---|---|
Public methods
addOrUpdateStatus
public void addOrUpdateStatus (String conversationId, ConversationStatus status)
Sets or updates a ConversationStatus for a conversation.
 
Statuses are meant to represent current information about the conversation. Like notifications, they are transient and are not persisted beyond a reboot, nor are they backed up and restored.
If the provided conversation shortcut is not already pinned, or cached by the system, it will remain cached as long as the status is active.
| Parameters | |
|---|---|
| conversationId | String: theidof the shortcut backing the
                       conversation that has an active status
 This value cannot benull. | 
| status | ConversationStatus: the current status for the given conversation
 This value cannot benull. | 
| Returns | |
|---|---|
| void | whether the role is available in the system | 
clearStatus
public void clearStatus (String conversationId, String statusId)
Unpublishes a given status from the given conversation.
| Parameters | |
|---|---|
| conversationId | String: theidof the shortcut backing the
                       conversation that has an active status
 This value cannot benull. | 
| statusId | String: theidof a published status for the
                       given conversation
 This value cannot benull. | 
clearStatuses
public void clearStatuses (String conversationId)
Removes all published statuses for the given conversation.
| Parameters | |
|---|---|
| conversationId | String: theidof the shortcut backing the
                       conversation that has one or more active statuses
 This value cannot benull. | 
getStatuses
public List<ConversationStatus> getStatuses (String conversationId)
Returns all of the currently published statuses for a given conversation.
| Parameters | |
|---|---|
| conversationId | String: theidof the shortcut backing the
                       conversation that has one or more active statuses
 This value cannot benull. | 
| Returns | |
|---|---|
| List<ConversationStatus> | This value cannot be null. | 
