GlassManager

デバイスの探索・接続・切断を担う。getGlassManager(context) で取得する。

メソッド シグネチャ
getGlassManager fun getGlassManager(context: Context): GlassManager
connectedDevice val connectedDevice: StateFlow<GlassClient?>
lastConnectedDevice val lastConnectedDevice: GlassClient?
hasLastConnectedDevice val hasLastConnectedDevice: Boolean
selectionDialogPresented val selectionDialogPresented: SharedFlow<Unit>
externalDisplayNameChanged val externalDisplayNameChanged: SharedFlow<String?>
showAutomaticSelectionDialog suspend fun showAutomaticSelectionDialog(context: Context): GlassClient?
connect suspend fun connect(glassClient: GlassClient)
disconnect suspend fun disconnect(glassClient: GlassClient)
disconnectAndClearBond suspend fun disconnectAndClearBond(glassClient: GlassClient)
createClientFromDeviceID fun createClientFromDeviceID(deviceId: String): GlassClient?
onDeviceDisappear fun onDeviceDisappear(address: String)
registerDeviceFromIntent fun registerDeviceFromIntent(data: Intent)
showDisconnectSheetIOS suspend fun showDisconnectSheetIOS(): Boolean
showRenameAccessorySheetIOS suspend fun showRenameAccessorySheetIOS(): Boolean

Table of contents