UIResource

abstract class UIResource

Base class for glasses uploadable resources

See also

Inheritors

Functions

Link copied to clipboard

Get the upload Fail Reason (should be used for debugging only)

Link copied to clipboard

Find out if the resource upload to the glasses was failed

Link copied to clipboard
abstract fun getMaxSizeBytes(): Int

Returns the maximum size allowed for the UIResource in bytes

Link copied to clipboard
abstract fun getResourceName(): String

Returns the resource name that was set or empty string if not set

Link copied to clipboard
abstract fun loadResource(): Boolean

Pre-Load the resource binary data from the application resources

Link copied to clipboard
fun retryUpload(screen: Screen)

The method instructs the SDK to retry and upload a failed UIResource, for example, when a packet loss occurs.

Link copied to clipboard
protected fun setResourceData(data: ByteArray?, resourceType: Int, resourceSlotNumber: Int)
Link copied to clipboard
abstract fun wasConfigured(): Boolean

Return true if the resource information is valid and sufficient for upload

Link copied to clipboard

Return true if the resource information was loaded successfully via loadResource

Link copied to clipboard

Find out if the resource was already uploaded to the glasses