ConversationStatus
class ConversationStatus : Parcelable
| kotlin.Any | |
| ↳ | android.app.people.ConversationStatus | 
Summary
| Nested classes | |
|---|---|
| Constants | |
|---|---|
| static Int | 
            
             Constant representing that the conversation user and the device user are celebrating and anniversary today.  | 
        
| static Int | 
            
             Constant representing that the conversation user is listening to music or other audio like a podcast.  | 
        
| static Int | 
            
             Constant representing that today is the conversation user's birthday.  | 
        
| static Int | 
            
             Constant representing that the conversation user is playing a game.  | 
        
| static Int | 
            
             Constant representing that the conversation user is sharing status with the device user.  | 
        
| static Int | 
            
             Constant representing that the conversation user has posted a new story.  | 
        
| static Int | 
            
             Constant representing that the conversation user is engaged in an activity that cannot be more specifically represented by another type.  | 
        
| static Int | 
            
             Constant representing that the conversation user's birthday is approaching soon.  | 
        
| static Int | 
            
             Constant representing that the conversation user is watching video content.  | 
        
| static Int | |
| static Int | |
| static Int | |
| static Int | |
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int | |
| Boolean | |
| Int | 
            
             Returns the type of activity represented by this status  | 
        
| Int | 
            
             Returns the availability of the people behind this conversation while this activity is happening.  | 
        
| CharSequence? | 
            
             Returns the description for this activity.  | 
        
| Long | 
            
             Returns the time at which this status should be expired.  | 
        
| Icon? | 
            getIcon()Returns the image for this activity.  | 
        
| String | 
            getId()Returns the unique identifier for the status.  | 
        
| Long | 
            
             Returns the time at which this status started  | 
        
| Int | 
            hashCode() | 
        
| String | 
            toString() | 
        
| Unit | 
            writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel.  | 
        
| Properties | |
|---|---|
| static Parcelable.Creator<ConversationStatus!> | |
Constants
ACTIVITY_ANNIVERSARY
static val ACTIVITY_ANNIVERSARY: Int
Constant representing that the conversation user and the device user are celebrating and anniversary today.
Value: 2ACTIVITY_AUDIO
static val ACTIVITY_AUDIO: Int
Constant representing that the conversation user is listening to music or other audio like a podcast.
Value: 4ACTIVITY_BIRTHDAY
static val ACTIVITY_BIRTHDAY: Int
Constant representing that today is the conversation user's birthday.
Value: 1ACTIVITY_GAME
static val ACTIVITY_GAME: Int
Constant representing that the conversation user is playing a game.
Value: 6ACTIVITY_LOCATION
static val ACTIVITY_LOCATION: Int
Constant representing that the conversation user is sharing status with the device user. Use this to represent a general 'this person is sharing their location with you' status or a more specific 'this is the current location of this person' status.
Value: 7ACTIVITY_NEW_STORY
static val ACTIVITY_NEW_STORY: Int
Constant representing that the conversation user has posted a new story.
Value: 3ACTIVITY_OTHER
static val ACTIVITY_OTHER: Int
Constant representing that the conversation user is engaged in an activity that cannot be more specifically represented by another type.
Value: 0ACTIVITY_UPCOMING_BIRTHDAY
static val ACTIVITY_UPCOMING_BIRTHDAY: Int
Constant representing that the conversation user's birthday is approaching soon.
Value: 8ACTIVITY_VIDEO
static val ACTIVITY_VIDEO: Int
Constant representing that the conversation user is watching video content.
Value: 5Public methods
describeContents
fun describeContents(): Int
| Return | |
|---|---|
Int | 
            a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
          
equals
fun equals(other: Any?): Boolean
| Parameters | |
|---|---|
obj | 
            the reference object with which to compare. | 
| Return | |
|---|---|
Boolean | 
            true if this object is the same as the obj argument; false otherwise. | 
          
getActivity
fun getActivity(): Int
Returns the type of activity represented by this status
getAvailability
fun getAvailability(): Int
Returns the availability of the people behind this conversation while this activity is happening.
getDescription
fun getDescription(): CharSequence?
Returns the description for this activity.
| Return | |
|---|---|
CharSequence? | 
            This value may be null. | 
          
getEndTimeMillis
fun getEndTimeMillis(): Long
Returns the time at which this status should be expired.
getIcon
fun getIcon(): Icon?
Returns the image for this activity.
| Return | |
|---|---|
Icon? | 
            This value may be null. | 
          
getId
fun getId(): String
Returns the unique identifier for the status.
| Return | |
|---|---|
String | 
            This value cannot be null. | 
          
getStartTimeMillis
fun getStartTimeMillis(): Long
Returns the time at which this status started
toString
fun toString(): String
| Return | |
|---|---|
String | 
            a string representation of the object. | 
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
dest | 
            Parcel: This value cannot be null. | 
          
flags | 
            Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |