AI-generated Key Takeaways
-
The ClockType class is deprecated and the Stream Protect API will be shut down in 2023.
-
ClockType informs Stream Protect about the clock used for packet receiving time in microseconds within FrameInfo from the client app.
-
ClockType instances are Parcelable, and you can refer to SystemClock for more details.
-
All constants and the constructor within the ClockType class are also deprecated.
-
The class includes methods for getting the clock type, converting to a string, and writing to a Parcel.
This class is deprecated.The Stream Protect API will be shutdown in 2023.
ClockType
informs Stream Protect what is the clock of the packet receiving time (microseconds) in FrameInfo
from client app. A ClockType
instance is a Parcelable
. Check SystemClock
for more details.
Constant Summary
| int | BOOTTIME | This constant is deprecated. The Stream Protect API will be shutdown in 2023. |
| int | MONOTONIC | This constant is deprecated. The Stream Protect API will be shutdown in 2023. |
| int | REALTIME | This constant is deprecated. The Stream Protect API will be shutdown in 2023. |
Inherited Constant Summary
Field Summary
| public static final Creator < ClockType > | CREATOR |
Public Constructor Summary
Public Method Summary
| int | |
| String | toString
()
|
| void |
Inherited Method Summary
Constants
public static final int BOOTTIME
This constant is deprecated.The Stream Protect API will be shutdown in 2023.
Monotonic clock since system booted, for example System.elapsedRealtimeNanos()
/ 1000
. This includes the deep sleep.
public static final int MONOTONIC
This constant is deprecated.The Stream Protect API will be shutdown in 2023.
Monotonic clock since system booted, for example System.nanoTime() /
1000
. It stops when the system enters deep sleep. We recommend to use this, even
though the SDK supports other types.
public static final int REALTIME
This constant is deprecated.The Stream Protect API will be shutdown in 2023.
Standard clock since the epoch, for example System.currentTimeMillis() *
1000
.
Fields
Public Constructors
public ClockType (int clockType)
This constructor is deprecated.The Stream Protect API will be shutdown in 2023.
Specifies ClockType
being used for timing in FrameInfo
.
Public Methods
public int getClockType ()
This method is deprecated.The Stream Protect API will be shutdown in 2023.
Extracts ClockType
.

