From caffd3fa892f9e4ecdb819526bc0baf9faee3f10 Mon Sep 17 00:00:00 2001 From: Deborah Femia Date: Thu, 2 Jan 2025 15:49:07 +0000 Subject: [PATCH] GITBOOK-510: Note missing iOS functions --- .../handling-system-permissions.md | 6 +++--- .../initializing-the-seam-mobile-sdk.md | 2 +- .../mobile-device-sdks/using-unlock-with-tap.md | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/capability-guides/mobile-access/mobile-device-sdks/handling-system-permissions.md b/docs/capability-guides/mobile-access/mobile-device-sdks/handling-system-permissions.md index cb43d3b5..146732bb 100644 --- a/docs/capability-guides/mobile-access/mobile-device-sdks/handling-system-permissions.md +++ b/docs/capability-guides/mobile-access/mobile-device-sdks/handling-system-permissions.md @@ -21,7 +21,7 @@ if (requiredPermissions.isNotEmpty()) { {% tab title="iOS Swift" %} ```swift -let requiredPermissions = seam.phone.native.listRequiredIosPermissions( +let requiredPermissions = seam.phone.native.listRequiredIosPermissions( // Coming soon! enableUnlockWithTap: true ) @@ -80,13 +80,13 @@ func eventDelegate( // Note that these events are located under the phone namespace. switch (event) { case .phone: - let phone = seam.phone.get().nativeMetadata + let phone = seam.phone.get().nativeMetadata // Coming soon! // The desired state has not been met. if(!phone.canUnlockWithTap) { if (phone.errors.contains(where: $0 == {.phone(.native(.missingRequiredIosPermissions)))}) { // Need to update the required permissions. - let requiredPermissions = seam.phone.native.listRequiredIosPermissions( + let requiredPermissions = seam.phone.native.listRequiredIosPermissions( // Coming soon! enableUnlockWithTap: true ) // Request the requiredPermissions or prompt the user to do so. diff --git a/docs/capability-guides/mobile-access/mobile-device-sdks/initializing-the-seam-mobile-sdk.md b/docs/capability-guides/mobile-access/mobile-device-sdks/initializing-the-seam-mobile-sdk.md index 6125bf8e..16787a55 100644 --- a/docs/capability-guides/mobile-access/mobile-device-sdks/initializing-the-seam-mobile-sdk.md +++ b/docs/capability-guides/mobile-access/mobile-device-sdks/initializing-the-seam-mobile-sdk.md @@ -398,7 +398,7 @@ func ( // If the event is under the phone namespace, the phone state may have changed. switch(event) { case .phone: - let phone = seam.phone.get().nativeMetadata + let phone = seam.phone.get().nativeMetadata // Coming soon! // Check for the desired state of the phone for all app features to work. if (!phone.isInitialized || !phone.canUnlockWithTap) { diff --git a/docs/capability-guides/mobile-access/mobile-device-sdks/using-unlock-with-tap.md b/docs/capability-guides/mobile-access/mobile-device-sdks/using-unlock-with-tap.md index b11ded89..f087b445 100644 --- a/docs/capability-guides/mobile-access/mobile-device-sdks/using-unlock-with-tap.md +++ b/docs/capability-guides/mobile-access/mobile-device-sdks/using-unlock-with-tap.md @@ -50,7 +50,7 @@ class MyEventHandler implements ISeamEventHandler { {% tab title="iOS Swift" %} ```swift // Retrieve mobile credentials explicitly. -if (seam.phone.get().nativeMetadata.isInitialized) { +if (seam.phone.get().nativeMetadata.isInitialized) { // Coming soon! let credentials = seam.phone.native.credentials.list() } @@ -88,7 +88,7 @@ if (requiredPermissions.isNotEmpty()) { {% tab title="iOS Swift" %} ```swift -let requiredPermissions = seam.phone.native.listRequiredIosPermissions( +let requiredPermissions = seam.phone.native.listRequiredIosPermissions( // Coming soon! enableUnlockWithTap: true ) @@ -137,7 +137,7 @@ fun handleEvent(event: SeamEvent) { // Check for changes in the phone state under the phone namespace. switch (event) { case .phone: - let phone = seam.phone.get().nativeMetadata + let phone = seam.phone.get().nativeMetadata // Coming soon! // Verify if the phone cannot unlock with tap. if(!phone.canUnlockWithTap) { @@ -185,7 +185,7 @@ if (seam.phone.get().can_unlock_with_tap) { fun handleEvent(event: SeamEvent) { // Check for changes in the phone state, under the phone namespace. if (event is SeamEvent.Phone) { - unlockWithTap = seam.phone.native.unlockWithTap.get() + unlockWithTap = seam.phone.native.unlockWithTap.get() // Coming soon! if (unlockWithTap.isRunning) { if (!unlockWithTap.isScanning) { @@ -223,12 +223,12 @@ func handleEvent(event: SeamEvent) { // Check for changes in the phone state, under the phone namespace. switch(event) { case .phone: - let unlockWithTap = seam.phone.native.unlockWithTap.get() + let unlockWithTap = seam.phone.native.unlockWithTap.get() // Coming soon! if unlockWithTap.isRunning { if !unlockWithTap.isScanning { // Set the UI state to indicate that the phone is not scanning. // Check the error map because scanning is expected but is not occurring. - let errors = seam.phone.get().nativeMetadata.errors + let errors = seam.phone.get().nativeMetadata.errors // Coming soon! // Errors to look out for could include: // - BluetoothConnectionRequired: Bluetooth is turned off. // - NoCredential: Missing credentials for operation.