Partager via


PeopleManager.AddOrUpdateStatus(String, ConversationStatus) Method

Definition

Sets or updates a ConversationStatus for a conversation.

[Android.Runtime.Register("addOrUpdateStatus", "(Ljava/lang/String;Landroid/app/people/ConversationStatus;)V", "", ApiSince=31)]
public void AddOrUpdateStatus (string conversationId, Android.App.People.ConversationStatus status);
[<Android.Runtime.Register("addOrUpdateStatus", "(Ljava/lang/String;Landroid/app/people/ConversationStatus;)V", "", ApiSince=31)>]
member this.AddOrUpdateStatus : string * Android.App.People.ConversationStatus -> unit

Parameters

conversationId
String

the ShortcutInfo#getId() id of the shortcut backing the conversation that has an active status

status
ConversationStatus

the current status for the given conversation

Attributes

Remarks

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.

Java documentation for android.app.people.PeopleManager.addOrUpdateStatus(java.lang.String, android.app.people.ConversationStatus).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to