ConnectionState

An enum containing all possible states this client can be in:

  • Stopped: Indicates, that this client has been stopped (or never started using start). This means, that this client will not do any work until start will be called. Depending on the use-case on your application, start could just be called after the application has started / come to foreground, or only on a specific screen / segment of the app.

  • Stopping: Indicates that the client is just about to stop all connection / usages of contexts and is about to get into the Stopped state. This state will be emitted after calling stop, until all things are done (i.e. contexts released) and the client gets then in the Stopped state.

  • Started: Indicates, that this client is started, but cannot establish a connection to the PictureManager on the remote device (either as no connection to the remote device is established yet (which you are responsible for in the given com.swarovskioptik.comm.SOCommOutsideAPI instance), or that the remote device does not provide the required preview contexts. Once those conditions are met, this client will automatically start its work by using the respective contexts and then providing live updates in e.g. availableMedia or availableThumbnails. Updates for localMedia are provided in this state.

  • ConnectingToPreview: Indicates the transitioning state between Started and ConnectedToPreview, which is after a connection to the remote device has been established and the preview context(s) are available. This state will be as long as it takes to use the respective contexts.

  • ConnectedToPreview: Indicates, that this client has an active connection (using com.swarovskioptik.comm.definition.ConnectionType.BLE), so thumbnails of new pictures on the remote device will be fetched (so availableMedia or availableThumbnails will receive live updates).

  • ConnectingToMediaDownload: Indicates that a switch form using the preview contexts to using the full res contexts is performed. This will be after calling turnOnMediaDownload, as long as it takes to se the WIFI contexts.

  • DowngradingMediaDownloadToPreview: Indicates that a switch from using the full res contexts to using the preview contexts is performed. This will be after calling turnOffMediaDownload.

  • ConnectedToMediaDownload: Indicates, that a connection as described in turnOnMediaDownload has been established. In this state, media items available as thumbnails (availableMedia / availableThumbnails) will be downloaded, and new pictures taken in this state will be downloaded automatically. This is after calling turnOnMediaDownload and after the usage of the full res contexts has been successfully performed.

Entries

Link copied to clipboard

Indicates, that this client has been stopped (or never started using start). This means, that this client will not do any work until start will be called. Depending on the use-case on your application, start could just be called after the application has started / come to foreground, or only on a specific screen / segment of the app.

Link copied to clipboard

Indicates that the client is just about to stop all connection / usages of contexts and is about to get into the Stopped state. This state will be emitted after calling stop, until all things are done (i.e. contexts released) and the client gets then in the Stopped state.

Link copied to clipboard

Indicates, that this client is started, but cannot establish a connection to the PictureManager on the remote device (either as no connection to the remote device is established yet (which you are responsible for in the given com.swarovskioptik.comm.SOCommOutsideAPI instance), or that the remote device does not provide the required preview contexts. Once those conditions are met, this client will automatically start its work by using the respective contexts and then providing live updates in e.g. availableMedia or availableThumbnails. Updates for localMedia are provided in this state.

Link copied to clipboard

Indicates the transitioning state between Started and ConnectedToPreview, which is after a connection to the remote device has been established and the preview context(s) are available. This state will be as long as it takes to use the respective contexts.

Link copied to clipboard

Indicates, that this client has an active connection (using com.swarovskioptik.comm.definition.ConnectionType.BLE), so thumbnails of new pictures on the remote device will be fetched (so availableMedia or availableThumbnails will receive live updates).

Link copied to clipboard

Indicates that a switch form using the preview contexts to using the full res contexts is performed. This will be after calling turnOnMediaDownload, as long as it takes to se the WIFI contexts.

Link copied to clipboard

Indicates that a switch from using the full res contexts to using the preview contexts is performed. This will be after calling turnOffMediaDownload.

Link copied to clipboard

Indicates, that a connection as described in turnOnMediaDownload has been established. In this state, media items available as thumbnails (availableMedia / availableThumbnails) will be downloaded, and new pictures taken in this state will be downloaded automatically. This is after calling turnOnMediaDownload and after the usage of the full res contexts has been successfully performed.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.