ClockType
Stay organized with collections
Save and categorize content based on your preferences.
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
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_STABILITY_LOCAL |
|
int |
PARCELABLE_STABILITY_VINTF |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Constructor Summary
ClockType
(int clockType) This constructor is deprecated. The Stream Protect API will be shutdown in
2023.
Public Method Summary
int |
getClockType
() This method is deprecated. The Stream Protect API will be shutdown in
2023.
|
String
|
|
void |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
int |
getStability
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
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.
Constant Value:
2
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.
Constant Value:
1
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
.
Constant Value:
0
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.
public void
writeToParcel
( Parcel
dest, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eClockType\u003c/code\u003e is deprecated and the Stream Protect API will be shutdown in 2023.\u003c/p\u003e\n"],["\u003cp\u003eIt informs Stream Protect about the packet receiving time clock type in \u003ccode\u003eFrameInfo\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers three clock types: \u003ccode\u003eBOOTTIME\u003c/code\u003e, \u003ccode\u003eMONOTONIC\u003c/code\u003e, and \u003ccode\u003eREALTIME\u003c/code\u003e, all of which are deprecated.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eClockType\u003c/code\u003e is Parcelable, allowing it to be passed between components.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMONOTONIC\u003c/code\u003e is the recommended clock type despite supporting others.\u003c/p\u003e\n"]]],[],null,["# ClockType\n\npublic class **ClockType** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \n**This class is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023.\n\n[ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType)\ninforms Stream Protect what is the clock of the packet receiving time (microseconds) in\n[FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo)\nfrom client app. A [ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType)\ninstance is a `Parcelable`. Check `SystemClock` for more details. \n\n### Constant Summary\n\n|-----|------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| int | [BOOTTIME](/android/reference/com/google/android/gms/streamprotect/ClockType#BOOTTIME) | *This constant is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| int | [MONOTONIC](/android/reference/com/google/android/gms/streamprotect/ClockType#MONOTONIC) | *This constant is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| int | [REALTIME](/android/reference/com/google/android/gms/streamprotect/ClockType#REALTIME) | *This constant is deprecated. The Stream Protect API will be shutdown in 2023.* |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_STABILITY_LOCAL | |\n| int | PARCELABLE_STABILITY_VINTF | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Field Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|---|\n| public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType)\\\u003e | [CREATOR](/android/reference/com/google/android/gms/streamprotect/ClockType#CREATOR) | |\n\n### Public Constructor Summary\n\n|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType#ClockType(int))(int clockType) *This constructor is deprecated. The Stream Protect API will be shutdown in 2023.* |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getClockType](/android/reference/com/google/android/gms/streamprotect/ClockType#getClockType())() *This method is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/streamprotect/ClockType#toString())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/streamprotect/ClockType#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| int | getStability() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nConstants\n---------\n\n#### public static final int\n**BOOTTIME**\n\n**This constant is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nMonotonic clock since system booted, for example `System.elapsedRealtimeNanos()\n/ 1000`. This includes the deep sleep. \nConstant Value: 2 \n\n#### public static final int\n**MONOTONIC**\n\n**This constant is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nMonotonic clock since system booted, for example `System.nanoTime() /\n1000`. It stops when the system enters deep sleep. We recommend to use this, even\nthough the SDK supports other types. \nConstant Value: 1 \n\n#### public static final int\n**REALTIME**\n\n**This constant is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nStandard clock since the epoch, for example `System.currentTimeMillis() *\n1000`. \nConstant Value: 0\n\nFields\n------\n\n#### public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType)\\\u003e\n**CREATOR**\n\nPublic Constructors\n-------------------\n\n#### public **ClockType** (int clockType)\n\n**This constructor is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nSpecifies `ClockType` being used for timing in [FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo).\n\nPublic Methods\n--------------\n\n#### public int **getClockType** ()\n\n**This method is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nExtracts `ClockType`. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags)"]]