Using Mesmer SDK
Embedding Mesmer accessibility sdk with your build

Mesmer SDK

A small SDK that unlocks advanced compliance and device interaction features like Screen Reader, Biometric ID, Camera, and more. Only for use in test builds uploaded to Mesmer.

What is Mesmer SDK?

Mesmer SDK is an iOS library. When integrated into any iOS project, it provides the apps internal data to Mesmer bots to make them do their job better. Mesmer SDK does not require any code changes from the app developers.

Usage

XCode Integration

  1. 1.
    Unzip Mesmer-ios-sdk.zip file
  2. 2.
    Drag MesmerSDK folder and drop it into your XCode project
  3. 3.
    Select "Copy items if needed" and "Create groups" options
  4. 4.
    Select the targets and click Finish
  5. 5.
    Go to Build Settings and add -ObjC as additional linker flag. Mesmer SDK also comes with BSMesmerSDK.xccconfig file if your project uses them
  6. 6.
    In Build Phases, select 'Link Binary With Libraries' and add WebKit.framework
  7. 7.
    Compile and run the app

Using Mesmer SDK custom features

If you want to extend Mesmer SDK's default functionality, you can use the APIs listed in BSMesmerSDK.h file

Using Mesmer SDK in Swift projects

After following all the integration steps, add
1
#include "BSMesmerSDK.h"
Copied!
in your bridging header file. If you don't have the bridging header file already in your project, please follow these instructions: https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift

Following methods are available to customize Mesmer SDK behavior

1
/* Returns current view DOM as a flat list or a tree. Use the scaleFactor to translate the size and position to the given scale */
2
+ (NSDictionary *)dom:(BOOL)accessibleOnly tree:(BOOL)tree scaleFactor:(NSInteger)scaleFactor error:(NSError **)error;
3
4
/* Removes all the secure key chain entries*/
5
+ (void)resetKeyChain;
6
7
/* Set the QR Code value and type, to bypass camera when scanning a QR Code */
8
+ (void)setQRCode:(NSString *)value of:(AVMetadataObjectType)type;
9
10
/* Set the image to use to bypass the camera when taking a still picture */
11
+ (void)setStillImage:(NSData *)image;
Copied!
Mesmer-ios-sdk.zip
5MB
Binary
Mesmer iOS SDK
Last modified 2mo ago
Export as PDF
Copy link