fuchsia.castsetup

For internal Google use only. This API is not to be used within the Fuchsia tree.

Added: 7

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

NameType
path string[1024]
api_mode ApiMode
security_state SecurityState
api_handler 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

NameType
data string?

Response

NameType
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

NameType
state State

ENUMS

ApiMode strict

Type: uint32

Defined in fuchsia.castsetup/server.fidl

API operation mode to specify during registration.

NameValueDescription
1
2

SecurityState strict

Type: uint32

Defined in fuchsia.castsetup/server.fidl

Specifies the required security for a client of the API.

NameValueDescription
0
1
2

State strict

Type: uint32

Defined in fuchsia.castsetup/cast_setup.fidl

Enum of different possible setup states

NameValueDescription
0

State is not determined.

1

Setup is not complete and is in progress.

2

Configured once but disconnected for now.

3

Setup is complete and device is connected.