AI-generated Key Takeaways
-
StreamProtectEvent
is a Parcelable class indicating the status of Stream Protect, which will be shut down in 2023. -
It provides constants representing various Stream Protect states like ENABLED, DISABLED, and reasons for stopping like internal errors or Wi-Fi disconnection.
-
The
getEventCode()
method extracts the status, whilewriteToParcel()
enables its serialization for data transfer. -
It includes a public constructor to create a
StreamProtectEvent
instance with a specific event code.
This class is deprecated.
The Stream Protect API will be shutdown in 2023.
A StreamProtectEvent
instance is a Parcelable
that indicates the status of Stream Protect.
Constant Summary
int | DISABLED | |
int | ENABLED | |
int | STOPPED_INTERNAL_ERROR | Stream Protect has stopped because of internal errors. |
int | STOPPED_NO_FRAME_INFO | Stream Protect has stopped as it did not receive
the next FrameInfo
within several seconds, or it did not receive the first FrameInfo
for a long time. |
int | STOPPED_SESSION_IN_BACKGROUND | Stream Protect has detected that the current app has gone to background and stopped. |
int | STOPPED_WIFI_DISCONNECTED | Stream Protect has stopped as the device is no longer connected to Wifi. |
int | UNKNOWN_EVENT | Event codes |
Inherited Constant Summary
Field Summary
public static final Creator<StreamProtectEvent> | CREATOR |
Public Constructor Summary
StreamProtectEvent(int eventCode)
This constructor is deprecated. The Stream Protect API will be shutdown in
2023.
|
Public Method Summary
int |
getEventCode()
This method is deprecated. The Stream Protect API will be shutdown in
2023.
|
String |
toString()
|
void |
writeToParcel(Parcel dest, int
flags)
|
Inherited Method Summary
Constants
public static final int DISABLED
public static final int ENABLED
public static final int STOPPED_INTERNAL_ERROR
Stream Protect has stopped because of internal errors.
public static final int STOPPED_NO_FRAME_INFO
public static final int STOPPED_SESSION_IN_BACKGROUND
Stream Protect has detected that the current app has gone to background and stopped.
public static final int STOPPED_WIFI_DISCONNECTED
Stream Protect has stopped as the device is no longer connected to Wifi.
public static final int UNKNOWN_EVENT
Event codes
Fields
public static final Creator<StreamProtectEvent> CREATOR
Public Constructors
public StreamProtectEvent (int eventCode)
This constructor is deprecated.
The Stream Protect API will be shutdown in 2023.
Indicates the status of Stream Protect.
Public Methods
public int getEventCode ()
This method is deprecated.
The Stream Protect API will be shutdown in 2023.
Extracts the status of Stream Protect.