Activity class Null safety

Presence is game or activity which user is playing/user participate. Can be game, eg. Dota 2, VS Code or activity like Listening to song on Spotify.

Properties

activityFlags ActivityFlags
Activity flags ORd together, describes what the payload includes
late, final
applicationId Snowflake?
Application id for the game
late, final
assets GameAssets?
Images for the presence and their hover texts
late, final
buttons Iterable<String>
Activity buttons. List of button labels
late, final
createdAt DateTime
Timestamp of when the activity was added to the user's session
late, final
customStatusEmoji ActivityEmoji?
The emoji used for a custom status
late, final
details String?
What the player is currently doing
late, final
hashCode int
The hash code for this object. [...]
read-only, inherited
instance bool?
Whether or not the activity is an instanced game session
late, final
name String
The activity name.
late, final
party ActivityParty?
Information for the current party of the player
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
secrets GameSecrets?
Secrets for Rich Presence joining and spectating
late, final
state String?
The user's current party status
late, final
timestamps ActivityTimestamps?
Timestamps for start and/or end of the game
late, final
type ActivityType
The activity type.
late, final
url String?
The game URL, if provided.
late, final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited