CTXMAMCore.h

Includes

<UIKit/UIKit.h>
<CTXMAMCore/CTXMAMConfigManager.h>
<CTXMAMCore/CTXMAMLogger.h>
<CTXMAMCore/CTXMAMNotificationCenter.h>
<!--NeedCopy-->

Introduction


Used as the main header for the CTXMAMCore.xcframework. Include the CTXMAMCore.h header in your source files to add all required headers to implement the CTXMAMCore framework in your project successfully.


Protocols


CTXMAMCoreSdkDelegate

Protocol to be implemented when you want your app to receive callbacks from the CTXMAMCore SDK.


Methods


+initializeSDKs:

Initializes all SDKs that are linked to your application. If you have linked against the CTXMAMCore and CTXMAMNetwork SDKs, this call will initialize both SDKs.

+initializeSDKsWithCompletionBlock:

Initializes all SDKs that are linked to your application. For example, if you have linked against the CTXMAMCore and CTXMAMNetwork SDKs, this call will initialize both SDKs.

+logoffApp:

This API is used to log off third-party applications only when the device is enrolled with Citrix Workspace App. If the device is enrolled with Secure Hub, there’s no need to call this API and it will always return NO if it is called.

+setDelegate:

Register the delegate to receive CTXMAMCore SDK callbacks.

+setCordovaInfoAfterBeingInitialized:

Set Cordova related info after sdks being initialized.


initializeSDKs


Initializes all SDKs that are linked to your application. If you have linked against CTXMAMCore and CTXMAMNetwork SDKs, this call will initialize both SDKs.

+ (void)initializeSDKs __attribute__((deprecated("Use initializeSDKsWithCompletionBlock function instead.")));
<!--NeedCopy-->

initializeSDKsWithCompletionBlock


Initializes all SDKs that are linked to your application. For example, if you have linked against the CTXMAMCore and CTXMAMNetwork SDKs, this call will initialize both SDKs.

+ (void)initializeSDKsWithCompletionBlock:(nonnull void (^)(NSError * _Nullable nilOrError))initResultHandler;
<!--NeedCopy-->

Parameters

initResultHandler

A block which is called after the initialization is complete. Verify the nilOrError parameter of the block. If nil, the initialization has finished successfully, other errors will give details on why the initialization has failed.


logoffApp


This API is used to log off third-party applications only when the device is enrolled with Citrix Workspace App. If the device is enrolled with Secure Hub, there’s no need to call this API and it will always return NO if it is called.

+ (BOOL)logoffApp;
<!--NeedCopy-->

Return Value

Returns YES if the app is logged off successfully, otherwise return NO.


setDelegate


Register the delegate to receive CTXMAMCore SDK callbacks.

+ (void)setDelegate:(nonnull id<CTXMAMCoreSdkDelegate>)delegate;
<!--NeedCopy-->

© Citrix Systems, Inc.

CTXMAMCore.h