SPSmartSharingCodeResolver
Objective-C
@interface SPSmartSharingCodeResolver : NSObject
Swift
class SPSmartSharingCodeResolver : NSObject
SPSmartSharingCodeResolver class is responsible for resolving sharing code obtained from scanning QR-Code in Steerpath Web SDK.
This provides a mechanism to share POIs from Web to Native SDK. If the sharing code is understandable by the Native SDK, SmartMap will select the POI with its information view. Otherwise, it will throw an error. In order to support this class, your application should also be setup so that it supports Universal Links. The format of the sharing url can be configured from the configuration file.
Example: “services” : { …, “kiosk”: { “default”: { “share”: { “hash”: false, “qrCodeShare”: { “enabled”: true, // Indicate if sharing code is supported “qrCodeURL”: “https://kiosk.steerpath.com/”, // Your domain goes here “qrCodePath”: “steerpath/index.html” // Your url path goes here }, “copyLinkToClipboard”: true } } } }
-
Declaration
Objective-C
+ (nonnull instancetype)sharedInstance;Swift
class func sharedInstance() -> SelfReturn Value
Singleton instance of SPSmartSharingCodeResolver
-
Unavailable
call sharedInstance instead
unavailable method, do not use
Declaration
Objective-C
- (nonnull instancetype)init;
-
Used to resolve sharing code. If the code is resolved successfully, the map will select the object. Otherwise an error with description will be thrown.
Declaration
Objective-C
- (void)resolveSharingCode:(nonnull NSString *)sharingCode completion:(nullable SPSharingCodeResolverCompletionBlock) completionBlock;Swift
func resolveSharingCode(_ sharingCode: String) async throws -> BoolParameters
sharingCodeThe code that is received from scanning QR-Code from Steerpath Web-SDK
completionBlockThe completion block will be returned when function finished. Use this completionBlock if you want to know if it succeeded or failed with detailed error.
SPSmartSharingCodeResolver Class Reference