StreamProtectEvent

public class StreamProtectEvent extends Object
implements Parcelable

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
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Constants

public static final int DISABLED

Constant Value: 2

public static final int ENABLED

Constant Value: 1

public static final int STOPPED_INTERNAL_ERROR

Stream Protect has stopped because of internal errors.

Constant Value: 13

public static final 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.

Constant Value: 10

public static final int STOPPED_SESSION_IN_BACKGROUND

Stream Protect has detected that the current app has gone to background and stopped.

Constant Value: 12

public static final int STOPPED_WIFI_DISCONNECTED

Stream Protect has stopped as the device is no longer connected to Wifi.

Constant Value: 11

public static final int UNKNOWN_EVENT

Event codes

Constant Value: 0

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.

public String toString ()

public void writeToParcel (Parcel dest, int flags)