For internal Google use only. This API is not to be used within the Fuchsia tree.
PROTOCOLS
ApiRegistry
Defined in fuchsia.castsetup/server.fidl
Registry that hosts APIs on behalf of clients.
RegisterApi
Registers an API that may accept incoming data.
path
identifies how to access the API. If multiple registrations occur with
the same path, then the last registration is bound, and the rest are unbound.
accepts_data
indicates whether this API should allow callers to provide
data in the form of a JSON string.
security_state
indicates what level of security the caller must
adhere to.
Request
Name | Type |
---|---|
path |
string:1024
|
api_mode |
ApiMode
|
security_state |
SecurityState
|
api_handler |
client_end:ApiRequestHandler
|
ApiRequestHandler
Defined in fuchsia.castsetup/server.fidl
Registered API that handles an incoming request.
HandleRequest
Called to handle a request to this setup API. The request data
is JSON.
The response data
must be JSON.
Request
Name | Type |
---|---|
data |
string?
|
Response
Name | Type |
---|---|
response_code |
uint32
|
data |
string?
|
StateWatcher
Defined in fuchsia.castsetup/cast_setup.fidl
Interface that allows watching of changes to the cast setup state.
Watch
Will immediately return on first call; subsequent calls will return on change.
Request
<EMPTY>
Response
Name | Type |
---|---|
state |
State
|
ENUMS
ApiMode strict
Type: uint32
Defined in fuchsia.castsetup/server.fidl
API operation mode to specify during registration.
Name | Value | Description |
---|---|---|
ACCEPTS_NO_DATA |
1 |
|
ACCEPTS_DATA |
2 |
SecurityState strict
Type: uint32
Defined in fuchsia.castsetup/server.fidl
Specifies the required security for a client of the API.
Name | Value | Description |
---|---|---|
SECURITY_STATE_NONE |
0 |
|
SECURITY_STATE_ENCRYPTED |
1 |
|
SECURITY_STATE_TRUSTED |
2 |
State strict
Type: uint32
Defined in fuchsia.castsetup/cast_setup.fidl
Enum of different possible setup states
Name | Value | Description |
---|---|---|
UNKNOWN |
0 |
State is not determined. |
IN_PROGRESS |
1 |
Setup is not complete and is in progress. |
OFFLINE |
2 |
Configured once but disconnected for now. |
COMPLETE |
3 |
Setup is complete and device is connected. |