AI-generated Key Takeaways
-
SessionState
is a data structure used for handling resume session requests in Android applications, specifically for Google Cast integration. -
It allows you to store customizable state information using a
JSONObject
and media load request data withMediaLoadRequestData
. -
Developers can access, manage, and restore session states with methods like
getCustomData()
,getLoadRequestData()
, andwriteToParcel()
. -
The class implements
Parcelable
for efficient data transfer across different components. -
A
SessionState.Builder
class is provided to facilitate the creation and initialization ofSessionState
objects.
The data structure for a resume session request.
Nested Class Summary
class | SessionState.Builder | Builder for SessionState . |
Inherited Constant Summary
Public Method Summary
boolean | |
JSONObject |
getCustomData()
Returns the customizable object for storing the state.
|
MediaLoadRequestData |
getLoadRequestData()
Returns the load request data.
|
int |
hashCode()
|
void |
writeToParcel(Parcel out, int
flags)
|
Inherited Method Summary
Public Methods
public boolean equals (Object other)
public JSONObject getCustomData ()
Returns the customizable object for storing the state.
public MediaLoadRequestData getLoadRequestData ()
Returns the load request data.