CastRemoteDisplayLocalService.Options
Stay organized with collections
Save and categorize content based on your preferences.
Public Constructor Summary
|
Options()
Create an options object with default values.
|
Public Method Summary
int |
|
void |
setConfigPreset(int configPreset)
Set the Remote Display configuration preset.
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Public Constructors
public Options ()
Create an options object with default values.
Public Methods
public int getConfigPreset ()
Get the Remote Display configuration preset.
public void setConfigPreset (int
configPreset)
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\u003eCastRemoteDisplayLocalService.Options\u003c/code\u003e provides configuration settings for a Remote Display session.\u003c/p\u003e\n"],["\u003cp\u003eIt allows you to set a configuration preset to optimize latency and other display behaviors using \u003ccode\u003esetConfigPreset()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the current configuration preset with \u003ccode\u003egetConfigPreset()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe default preset is \u003ccode\u003eCastRemoteDisplay.CONFIGURATION_INTERACTIVE_NONREALTIME\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `CastRemoteDisplayLocalService.Options` class manages options for a Remote Display session. It allows creation of an options object with default values. It provides methods to get and set the Remote Display configuration preset, which influences transmission and display behaviors, including latency optimization. The `getConfigPreset()` method retrieves the current configuration, while `setConfigPreset(int configPreset)` allows modification, accepting `CastRemoteDisplay.Configuration` values. The default configuration is `CONFIGURATION_INTERACTIVE_NONREALTIME`.\n"],null,["# CastRemoteDisplayLocalService.Options\n\npublic static class **CastRemoteDisplayLocalService.Options** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nOptions for a Remote Display session. See [CastRemoteDisplay.CastRemoteDisplayOptions.Builder](/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplayOptions.Builder). \n\n### Public Constructor Summary\n\n|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Options](/android/reference/com/google/android/gms/cast/CastRemoteDisplayLocalService.Options#Options())() Create an options object with default values. |\n\n### Public Method Summary\n\n|------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getConfigPreset](/android/reference/com/google/android/gms/cast/CastRemoteDisplayLocalService.Options#getConfigPreset())() Get the Remote Display configuration preset. |\n| void | [setConfigPreset](/android/reference/com/google/android/gms/cast/CastRemoteDisplayLocalService.Options#setConfigPreset(int))(int configPreset) Set the Remote Display configuration preset. |\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\nPublic Constructors\n-------------------\n\n#### public **Options** ()\n\nCreate an options object with default values.\n\nPublic Methods\n--------------\n\n#### public int **getConfigPreset** ()\n\nGet the Remote Display configuration preset. \n\n##### Returns\n\n- The [CastRemoteDisplay.Configuration](/android/reference/com/google/android/gms/cast/CastRemoteDisplay.Configuration) value \n\n#### public void **setConfigPreset** (int configPreset)\n\nSet the Remote Display configuration preset. This affects latency optimization and\nother transmission and display behaviours. The default is [CastRemoteDisplay.CONFIGURATION_INTERACTIVE_NONREALTIME](/android/reference/com/google/android/gms/cast/CastRemoteDisplay#CONFIGURATION_INTERACTIVE_NONREALTIME). \n\n##### Parameters\n\n| configPreset | The desired streaming preset, which is one of [CastRemoteDisplay.Configuration](/android/reference/com/google/android/gms/cast/CastRemoteDisplay.Configuration) |\n|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|"]]