@selligent-marketing-cloud/selligent-react-native 3.0.0 → 3.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -1550
- package/RNSelligent.podspec +8 -15
- package/android/build.gradle +48 -81
- package/android/src/main/java/com/selligent/BroadcastEventType.java +4 -1
- package/android/src/main/java/com/selligent/ButtonAction.java +81 -0
- package/android/src/main/java/com/selligent/ButtonBroadcastEventDataParser.java +9 -3
- package/android/src/main/java/com/selligent/DeviceIdBroadcastEventDataParser.java +15 -0
- package/android/src/main/java/com/selligent/EventType.java +1 -1
- package/android/src/main/java/com/selligent/GCMTokenBroadcastEventDataParser.java +6 -1
- package/android/src/main/java/com/selligent/InAppMessageBroadcastEventDataParser.java +7 -1
- package/android/src/main/java/com/selligent/NotificationMessageBroadcastEventDataParser.java +19 -0
- package/android/src/main/java/com/selligent/RNSelligent.java +195 -56
- package/android/src/main/java/com/selligent/SMSettingsFactory.java +0 -1
- package/android/src/main/java/com/selligent/Settings.java +0 -9
- package/constants.d.ts +7 -33
- package/constants.js +51 -85
- package/documentation/README.md +826 -0
- package/helpers.js +5 -6
- package/index.android.js +8 -83
- package/index.d.ts +33 -43
- package/index.ios.js +25 -76
- package/index.js +153 -45
- package/ios/RNSelligentMapper.h +21 -0
- package/ios/RNSelligentMapper.m +151 -0
- package/ios/RNSelligentMobileSDK.xcframework/Info.plist +40 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +350 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Info.plist +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +179 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Headers/RNSelligentMobileSDK-Swift.h +696 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Info.plist +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +2603 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/RNSelligentMobileSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/Modules/module.modulemap +4 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/RNSelligentMobileSDK +0 -0
- package/ios/RNSelligentMobileSDK.xcframework/ios-arm64_x86_64-simulator/RNSelligentMobileSDK.framework/_CodeSignature/CodeResources +234 -0
- package/package.json +30 -11
- package/.gitattributes +0 -1
- package/CHANGELOG.md +0 -60
- package/android/README.md +0 -15
- package/android/build/generated/source/buildConfig/debug/com/selligent/BuildConfig.java +0 -12
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -9
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_metadata/debug/aar-metadata.properties +0 -4
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/compile_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -6548
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastDataFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BroadcastEventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ButtonBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/ClearCacheIntervalValue.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Event.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventReceiver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/EventType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/GCMTokenBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageBroadcastEventDataParser.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/InAppMessageRefreshType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent$5.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RNSelligentPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/RemoteMessageDisplayType.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMEventFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/SMSettingsFactory.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/selligent/Settings.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -11
- package/android/build/intermediates/merged_manifest/debug/AndroidManifest.xml +0 -9
- package/android/build/intermediates/navigation_json/debug/navigation.json +0 -1
- package/android/build/intermediates/packaged_manifests/debug/output-metadata.json +0 -18
- package/android/build/intermediates/runtime_library_classes_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -4894
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -25
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/libs/sdk-release.aar +0 -0
- package/documentation/add_json_file.png +0 -0
- package/documentation/add_lib_file.png +0 -0
- package/ios/BackgroundFetchResult.h +0 -5
- package/ios/ClearCacheInterval.h +0 -7
- package/ios/ClientSettings.h +0 -22
- package/ios/ClientSettings.m +0 -39
- package/ios/EnumMapper.h +0 -36
- package/ios/EnumMapper.m +0 -121
- package/ios/Event+SMEvent.h +0 -13
- package/ios/Event+SMEvent.m +0 -41
- package/ios/Event.h +0 -12
- package/ios/Event.m +0 -24
- package/ios/EventType.h +0 -7
- package/ios/InAppMessageRefreshType.h +0 -6
- package/ios/InAppMessageSettings.h +0 -9
- package/ios/InAppMessageSettings.m +0 -19
- package/ios/LocationAuthorisationStatus.h +0 -6
- package/ios/LocationAuthorisationType.h +0 -4
- package/ios/LogLevel.h +0 -9
- package/ios/NotificationButtonType.h +0 -15
- package/ios/ParsableObject.h +0 -5
- package/ios/RNSelligent.h +0 -22
- package/ios/RNSelligent.m +0 -347
- package/ios/RemoteMessageDisplayType.h +0 -5
- package/ios/SMManagerSetting+ClientSettings.h +0 -9
- package/ios/SMManagerSetting+ClientSettings.m +0 -73
- package/ios/SelligentLogger.h +0 -7
- package/ios/SelligentLogger.m +0 -9
- package/ios/SelligentReactNative.xcodeproj/project.pbxproj +0 -446
- package/ios/include/SMBaseMessage.h +0 -48
- package/ios/include/SMBlock.h +0 -21
- package/ios/include/SMClearCache.h +0 -34
- package/ios/include/SMContentAlignment.h +0 -27
- package/ios/include/SMDeviceInfos.h +0 -38
- package/ios/include/SMDisplayMode.h +0 -27
- package/ios/include/SMEvent.h +0 -69
- package/ios/include/SMEventUser.h +0 -20
- package/ios/include/SMEventUserLogin.h +0 -42
- package/ios/include/SMEventUserLogout.h +0 -42
- package/ios/include/SMEventUserRegistration.h +0 -42
- package/ios/include/SMEventUserUnregistration.h +0 -42
- package/ios/include/SMFailure.h +0 -19
- package/ios/include/SMHelper.h +0 -51
- package/ios/include/SMInAppContentHTMLViewController.h +0 -59
- package/ios/include/SMInAppContentImageViewController.h +0 -36
- package/ios/include/SMInAppContentMessage.h +0 -56
- package/ios/include/SMInAppContentStyleOptions.h +0 -511
- package/ios/include/SMInAppContentType.h +0 -35
- package/ios/include/SMInAppContentURLViewController.h +0 -36
- package/ios/include/SMInAppContentViewController.h +0 -31
- package/ios/include/SMInAppMessage.h +0 -51
- package/ios/include/SMInAppMessageType.h +0 -50
- package/ios/include/SMInAppRefreshType.h +0 -29
- package/ios/include/SMLink.h +0 -39
- package/ios/include/SMLog.h +0 -54
- package/ios/include/SMManager+DataTransaction.h +0 -33
- package/ios/include/SMManager+InAppContent.h +0 -170
- package/ios/include/SMManager+InAppMessage.h +0 -172
- package/ios/include/SMManager+Location.h +0 -41
- package/ios/include/SMManager+Log.h +0 -31
- package/ios/include/SMManager+RemoteNotification.h +0 -171
- package/ios/include/SMManager+SMEvent.h +0 -67
- package/ios/include/SMManager+SMLink.h +0 -44
- package/ios/include/SMManager+SilentPush.h +0 -53
- package/ios/include/SMManager+StyleOptions.h +0 -36
- package/ios/include/SMManager+UserNotification.h +0 -180
- package/ios/include/SMManager+ViewController.h +0 -45
- package/ios/include/SMManager.h +0 -69
- package/ios/include/SMManagerHelper.h +0 -18
- package/ios/include/SMManagerInAppMessageDelegate.h +0 -24
- package/ios/include/SMManagerSetting+Location.h +0 -27
- package/ios/include/SMManagerSetting.h +0 -180
- package/ios/include/SMManagerSettingIAC.h +0 -48
- package/ios/include/SMManagerSettingIAM.h +0 -49
- package/ios/include/SMManagerUniversalLinksDelegate.h +0 -23
- package/ios/include/SMMessage.h +0 -21
- package/ios/include/SMNSNotification.h +0 -81
- package/ios/include/SMNotificationAnnotationData.h +0 -33
- package/ios/include/SMNotificationButtonData.h +0 -20
- package/ios/include/SMNotificationButtonType.h +0 -90
- package/ios/include/SMNotificationMessage.h +0 -31
- package/ios/include/SMRemoteMessageDisplayType.h +0 -32
- package/ios/include/SMSuccess.h +0 -16
- package/ios/libSelligentMobile.a +0 -0
- package/trigger.yml +0 -9
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMIAMRefreshType.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 13/11/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/*!
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
typedef NS_ENUM(NSInteger, SMInAppRefreshType) {
|
|
13
|
-
/*!
|
|
14
|
-
* This explicitely disable the In App fetch mecahnism
|
|
15
|
-
*/
|
|
16
|
-
kSMIA_RefreshType_None,
|
|
17
|
-
/*!
|
|
18
|
-
* Allow to fetch In App Minutely (to be used only in development)
|
|
19
|
-
*/
|
|
20
|
-
kSMIA_RefreshType_Minutely,
|
|
21
|
-
/*!
|
|
22
|
-
* Allow to fetch In App hourly
|
|
23
|
-
*/
|
|
24
|
-
kSMIA_RefreshType_Hourly,
|
|
25
|
-
/*!
|
|
26
|
-
* Allow to fetch In App Daily
|
|
27
|
-
*/
|
|
28
|
-
kSMIA_RefreshType_Daily ,
|
|
29
|
-
};
|
package/ios/include/SMLink.h
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMLinks.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 13/05/16.
|
|
6
|
-
// Copyright © 2016 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "SMNotificationButtonType.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
@interface SMLink : NSObject
|
|
16
|
-
|
|
17
|
-
/*!
|
|
18
|
-
* NSString instance providing the id of the button
|
|
19
|
-
*/
|
|
20
|
-
@property (readonly, nonatomic, strong) NSString *_Nullable idButtonData;
|
|
21
|
-
|
|
22
|
-
/*!
|
|
23
|
-
* NSString instance providing the label of the button
|
|
24
|
-
*/
|
|
25
|
-
@property (readonly, nonatomic, strong) NSString *_Nullable label;
|
|
26
|
-
|
|
27
|
-
/*!
|
|
28
|
-
* NSString instance providing the value of the button
|
|
29
|
-
*/
|
|
30
|
-
@property (readonly, nonatomic, strong) NSString *_Nullable value;
|
|
31
|
-
|
|
32
|
-
/*!
|
|
33
|
-
* The type (SMNotificationButtonType) of action that the button will execute.
|
|
34
|
-
*
|
|
35
|
-
* @see SMNotificationButtonType
|
|
36
|
-
*/
|
|
37
|
-
@property (readonly, nonatomic) SMNotificationButtonType type;
|
|
38
|
-
|
|
39
|
-
@end
|
package/ios/include/SMLog.h
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMLog.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 12/06/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
/*!
|
|
10
|
-
* Enumeration type for the log granularity
|
|
11
|
-
*/
|
|
12
|
-
typedef NS_OPTIONS(NSInteger, SMLogLevel) {
|
|
13
|
-
/*!
|
|
14
|
-
* No log printed at all.
|
|
15
|
-
* This is the suggested log-level for release.
|
|
16
|
-
*/
|
|
17
|
-
kSMLogLevel_None = 0,
|
|
18
|
-
|
|
19
|
-
/*!
|
|
20
|
-
* Default log-entry.
|
|
21
|
-
* Basically inform user when library starts / ends.
|
|
22
|
-
*/
|
|
23
|
-
kSMLogLevel_Info = 1 << 1,
|
|
24
|
-
|
|
25
|
-
/*!
|
|
26
|
-
* Only warning messages are printed
|
|
27
|
-
*/
|
|
28
|
-
kSMLogLevel_Warning = 1 << 2,
|
|
29
|
-
|
|
30
|
-
/*!
|
|
31
|
-
* Only Error messages are being printed
|
|
32
|
-
*/
|
|
33
|
-
kSMLogLevel_Error = 1 << 3,
|
|
34
|
-
|
|
35
|
-
/*!
|
|
36
|
-
* Print only HTTP-requests stuff
|
|
37
|
-
*/
|
|
38
|
-
kSMLogLevel_HTTPCall = 1 << 4,
|
|
39
|
-
|
|
40
|
-
/*!
|
|
41
|
-
* Print only location-requests stuff
|
|
42
|
-
*/
|
|
43
|
-
kSMLogLevel_Location = 1 << 5,
|
|
44
|
-
|
|
45
|
-
/*!
|
|
46
|
-
* Print everything. Do not use for release!!!
|
|
47
|
-
*/
|
|
48
|
-
kSMLogLevel_All = 0xFF,
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMManager+DataTransaction.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 08/02/2017.
|
|
6
|
-
// Copyright © 2017 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMManager.h"
|
|
10
|
-
#import "SMDeviceInfos.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* This category will help you to retrieve or send specific information to the selligent platform.
|
|
14
|
-
*/
|
|
15
|
-
@interface SMManager (DataTransaction)
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @discussion In order to send device informations to the back-end you can use
|
|
19
|
-
* @warning Deprecated method
|
|
20
|
-
*/
|
|
21
|
-
- (void) sendDeviceInfo __deprecated __deprecated_msg("Use sendDeviceInfo: instead.");
|
|
22
|
-
|
|
23
|
-
/*!
|
|
24
|
-
* This method allow you to send an event with pre-defined devices informations to the back-end
|
|
25
|
-
*
|
|
26
|
-
* @discussion The informations to be sent will be set in a SMDeviceInfos object. Each property of the created object will be a data that will be provided to the back-end. For additional informations you can refer to SMDevicesInfos.
|
|
27
|
-
* This call can be done at any time after starting the library and if the properties of SMDeviceInfos object has not changed from a previous call, the event will not be sent to avoid platform unnecessarily overload.
|
|
28
|
-
* @param deviceInfos SMDeviceInfos object
|
|
29
|
-
* @see SMDeviceInfos
|
|
30
|
-
*/
|
|
31
|
-
- (void) sendDeviceInfo:(SMDeviceInfos*_Nullable)deviceInfos;
|
|
32
|
-
|
|
33
|
-
@end
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMManager+InAppContent.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Gilbert Schakal on 11/03/16.
|
|
6
|
-
// Copyright © 2016 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMManager.h"
|
|
10
|
-
#import "SMInAppContentType.h"
|
|
11
|
-
#import "SMInAppContentMessage.h"
|
|
12
|
-
#import "SMLink.h"
|
|
13
|
-
|
|
14
|
-
@class SMInAppContentViewController;
|
|
15
|
-
|
|
16
|
-
/*!
|
|
17
|
-
* In-Application-Content (IAC) is an optional service which will retrieve messages from the back-end each time the application enters foregrounds at specific frequencies and if connection is available.
|
|
18
|
-
*
|
|
19
|
-
* Once new messages were retrieved, the library notifies the application about it.
|
|
20
|
-
*
|
|
21
|
-
* Each IAC is is from a specific type (SMInAppContentType) and is also linked to a category defined by yourself
|
|
22
|
-
*
|
|
23
|
-
* ##Implementation
|
|
24
|
-
* In a nutshell, activate the IAC-service is a one step process:
|
|
25
|
-
*
|
|
26
|
-
* * Create an SMManagerSettingIAC instance and inject it in SMManagerSetting with [SMManagerSetting configureInAppContentServiceWithSetting:]
|
|
27
|
-
*
|
|
28
|
-
* In order to be notified about new IAC, the application must register to correct notification *kSMNotification_Event_DidReceiveInAppContent*
|
|
29
|
-
* (Please read SMNSNotification for additional information).
|
|
30
|
-
* This notification will provide you with the number of IAC's by category.
|
|
31
|
-
* Please be aware that it’s the unique application’s chance to capture and store that information.
|
|
32
|
-
*
|
|
33
|
-
* ##Displaying IAC
|
|
34
|
-
*
|
|
35
|
-
* * With the SDK view controllers:
|
|
36
|
-
*
|
|
37
|
-
* Each IAC is from a specific type for a specific category.
|
|
38
|
-
*
|
|
39
|
-
* Selligent SDK provide a specific view controller for each type of in app content
|
|
40
|
-
*
|
|
41
|
-
* * SMInAppContentHTMLViewController for IAC of type kSMInAppContentType_HTML
|
|
42
|
-
* * SMInAppContentURLViewController for IAC of type kSMInAppContentType_Url
|
|
43
|
-
* * SMInAppContentImageViewController for IAC of type kSMInAppContentType_Image
|
|
44
|
-
*
|
|
45
|
-
* You can check each of this object for more information about how to use them.
|
|
46
|
-
*
|
|
47
|
-
* All this view controller can also be customised with the use of SMInAppContentStyleOptions.
|
|
48
|
-
*
|
|
49
|
-
* Once the sdk has provided you with the correct view controller
|
|
50
|
-
*
|
|
51
|
-
* `SMInAppContentURLViewController* vc = [SMInAppContentURLViewController viewControllerForCategory:@"anycategory"];`
|
|
52
|
-
*
|
|
53
|
-
* You can call showSMController:InContainerView:OfParentViewController: if you expect to display the In App Content in a UIContainerView that is defined in your app :
|
|
54
|
-
*
|
|
55
|
-
* `[[SMManager sharedInstance] showSMController:vc InContainerView:_containerView OfParentViewController:self];`
|
|
56
|
-
*
|
|
57
|
-
* Or you can present it to be displayed in full screen mode :
|
|
58
|
-
*
|
|
59
|
-
* `[self presentViewController:vc animated:YES completion:nil];`
|
|
60
|
-
*
|
|
61
|
-
* Be aware that if your UIContainerView is defined in storyboard and that no category has been provided to it you will need to inform it with prepareForSegue:sender:
|
|
62
|
-
*
|
|
63
|
-
* ` -(void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
|
|
64
|
-
* {
|
|
65
|
-
* if ([segue.identifier isEqualToString:@"YourSegue"]) {
|
|
66
|
-
* _sminappcontentviewcontroller = segue.destinationViewController;
|
|
67
|
-
* [self.sminappcontentviewcontroller setCategory:@"anycategory"];
|
|
68
|
-
* }
|
|
69
|
-
* }`
|
|
70
|
-
*
|
|
71
|
-
* * With your own view controllers
|
|
72
|
-
*
|
|
73
|
-
* In this case you can call getInAppContentsForCategory:Type: or getInAppContentsForCategory:Type:Max:
|
|
74
|
-
*
|
|
75
|
-
* Those methods will present you an NSArray of SMInAppContentMessage with all (or a maximum number, precised by the Max parameter) IAC for a category and for a type.
|
|
76
|
-
*
|
|
77
|
-
* If you decide to use this way of interacting with IAC it is important that you keep in mind that you will be responsible of the display of the content and you will have to call to setInAppContentAsSeen: whenever an InAppContent is showed to the user and to executeLinkAction:InAppContent: whenever user interact with an action link of the in app content.
|
|
78
|
-
*
|
|
79
|
-
* ##Fetching modes
|
|
80
|
-
* IAC may be retrieved from two different modes corresponding to the application's state:
|
|
81
|
-
*
|
|
82
|
-
* * Foreground-fetch -- When the application is in foreground.
|
|
83
|
-
* * Background-fetch -- When the application is in background.
|
|
84
|
-
*
|
|
85
|
-
* Each of these modes is **optional**. In other words, you can use one mode or the other, or even both at the same time.
|
|
86
|
-
* Choosing the adequate mode depends on the application's need and can be managed by the application's developper.
|
|
87
|
-
* Off course, to allow the SDK to retrieve IAC as fast as possible, we recommand using both modes at the same time.
|
|
88
|
-
*
|
|
89
|
-
* Following documentation explains how to activate each mode:
|
|
90
|
-
*
|
|
91
|
-
* ##Fetching IAC in foreground
|
|
92
|
-
* In order to retrieve IAC while the application is running, make sure to do the folllowing:
|
|
93
|
-
*
|
|
94
|
-
* - Create and configure an SMManagerSettingIAC instance accordingly.
|
|
95
|
-
* - Provide the created SMManagerSettingIAC instance to SMManager before starting the library
|
|
96
|
-
*
|
|
97
|
-
* ##Fetching IAC in background
|
|
98
|
-
* Initially, this mode has been added as a complementary-option to the foreground-mode.
|
|
99
|
-
* However, it can be used as a single-fetch-mode if fits best your application's need.
|
|
100
|
-
*
|
|
101
|
-
* To understand better how often the OS will execute the background-fetch, make sure to read the following [Apple-documentation](https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW56)
|
|
102
|
-
*
|
|
103
|
-
* In order to support this mode, make sure to :
|
|
104
|
-
*
|
|
105
|
-
* - Create the SMManagerSettingIAC instance accordingly.
|
|
106
|
-
* - Provide the created SMManagerSettingIAC instance to SMManager before starting the library.
|
|
107
|
-
* - In the application's target, enable the following: Capabilities > Background Modes > Background Fetch
|
|
108
|
-
* - Implement performFetchWithCompletionHandler: in UIApplication's delegate (under delegate method application:performFetchWithCompletionHandler:)
|
|
109
|
-
*/
|
|
110
|
-
|
|
111
|
-
@interface SMManager (InAppContent)
|
|
112
|
-
|
|
113
|
-
/*!
|
|
114
|
-
* Call when SDK has already provided you with a SMInAppContentViewController (of any type : SMInAppContentHTMLViewController , SMInAppContentImageViewController or SMInAppContentURLViewController) and you want to display it in a UIContainerView defined anywhere in your app.
|
|
115
|
-
* @discussion The viewcontroller will take all available space in the UIContainerView
|
|
116
|
-
* @param smViewController a SMInAppContentViewController
|
|
117
|
-
* @param containerView the UIContainerView in which In App Content will be displayed
|
|
118
|
-
* @param parentViewController the parent UIViewController of your UIContainerView
|
|
119
|
-
* @see SMInAppContentViewController
|
|
120
|
-
*/
|
|
121
|
-
- (void) showSMController:(SMInAppContentViewController*_Nullable)smViewController InContainerView:(UIView*_Nullable)containerView OfParentViewController:(UIViewController*_Nullable)parentViewController;
|
|
122
|
-
|
|
123
|
-
/*!
|
|
124
|
-
* @abstract This will return an array of In App Contents
|
|
125
|
-
* @discussion All the IAC will be retrieved
|
|
126
|
-
* @param category NSString the category for which you want your In App Contents
|
|
127
|
-
* @param type An SMInAppContentType - Url, Html or image
|
|
128
|
-
* @return returns an NSArray of SMInAppContentMessage
|
|
129
|
-
* @see SMInAppContentType
|
|
130
|
-
*/
|
|
131
|
-
- (NSArray*_Nonnull) getInAppContentsForCategory:(NSString*_Nullable)category Type:(SMInAppContentType)type;
|
|
132
|
-
|
|
133
|
-
/*!
|
|
134
|
-
* @abstract This will return an array of In App Contents
|
|
135
|
-
* @discussion This overload allows you to define the max number of IAC to retrieve
|
|
136
|
-
* @param category An NSString the category for which you want your In App Contents
|
|
137
|
-
* @param type An SMInAppContentType - Url, Html or image
|
|
138
|
-
* @param max An int
|
|
139
|
-
* @return returns an NSArray of SMInAppContentMessage
|
|
140
|
-
* @see SMInAppContentType
|
|
141
|
-
*/
|
|
142
|
-
- (NSArray*_Nonnull) getInAppContentsForCategory:(NSString*_Nullable)category Type:(SMInAppContentType)type Max:(int)max;
|
|
143
|
-
|
|
144
|
-
/*!
|
|
145
|
-
* @abstract This method will mark an IAC as viewed, save it in the cache and send the Open event to the server
|
|
146
|
-
* @discussion If the display mode is set to 0 (display once), the IAC will be discarded from the cache and will not be provided to you anymore with getInAppContentsForCategory:Type: or getInAppContentsForCategory:Type:Max:
|
|
147
|
-
* @param inAppContent an SMInAppContentMessage object
|
|
148
|
-
* @see SMInAppContentMessage
|
|
149
|
-
*/
|
|
150
|
-
- (void) setInAppContentAsSeen:(SMInAppContentMessage*_Nullable)inAppContent;
|
|
151
|
-
|
|
152
|
-
/*!
|
|
153
|
-
* @abstract This method must be called whenever a user has clicked on a link that you manage to display
|
|
154
|
-
* @discussion This will allow the sdk to inform the services that a link has been clicked and to process the action associated with the link
|
|
155
|
-
* @param link a SMLink object
|
|
156
|
-
* @param inAppContent a SMInAppContentMessage object
|
|
157
|
-
* @see SMLink
|
|
158
|
-
* @see SMInAppContentMessage
|
|
159
|
-
*/
|
|
160
|
-
- (void) executeLinkAction:(SMLink*_Nullable)link InAppContent:(SMInAppContentMessage*_Nullable)inAppContent;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* This will allow the SDK to fetch the IAC when the OS will allow so.
|
|
164
|
-
* @discussion To be included in application:performFetchWithCompletionHandler:
|
|
165
|
-
* @param completionHandler The block-completion to be processed. Provided by the delegate call
|
|
166
|
-
* @warning Make sure to enable background-fetch in the application's capabilities
|
|
167
|
-
*/
|
|
168
|
-
- (void) performIACFetchWithCompletionHandler:(void (^_Nullable)(UIBackgroundFetchResult))completionHandler;
|
|
169
|
-
|
|
170
|
-
@end
|
|
@@ -1,172 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMManager+InAppMessage.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Samy Ziat on 30/09/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <WebKit/WebKit.h>
|
|
10
|
-
|
|
11
|
-
#import "SMManager.h"
|
|
12
|
-
#import "SMInAppMessage.h"
|
|
13
|
-
#import "SMLink.h"
|
|
14
|
-
#import "SMManagerInAppMessageDelegate.h"
|
|
15
|
-
|
|
16
|
-
@class SMManagerSettingIAM;
|
|
17
|
-
@class WKNavigationDelegate;
|
|
18
|
-
|
|
19
|
-
/*!
|
|
20
|
-
* In-Application-Message (IAM) is an optional service which will **automatically** retrieve messages from the back-end at specific frequencies.
|
|
21
|
-
* Once new messages were retrieved, the library notifies the application about it.
|
|
22
|
-
* Then, the application may display any IAM as a usual notification.
|
|
23
|
-
*
|
|
24
|
-
* The retrieved IAM share the exact same format as the remote-notification.
|
|
25
|
-
* However, they are not live messages and, therefore should NOT be considered as an alternative to remote-notification.
|
|
26
|
-
* Remote-push-notificaitons are almost live messages that are pushed to devices.
|
|
27
|
-
* While IAM are non-live-messages that the SDK fetch at specific intervals according to provided fetch-mode.
|
|
28
|
-
*
|
|
29
|
-
* ##Implementation:
|
|
30
|
-
* In a nutshell, activate the IAM-service is a two steps process:
|
|
31
|
-
*
|
|
32
|
-
* * First, create an SMManagerSettingIAM instance and inject it in SMManagerSetting with [SMManagerSetting configureInAppMessageServiceWithSetting:]
|
|
33
|
-
* * Then, enable the IAM-service with enableInAppMessage:
|
|
34
|
-
*
|
|
35
|
-
* However, additional steps might be required according to desired fetching-mode.
|
|
36
|
-
* Each of these steps are explained in further details bellow.
|
|
37
|
-
*
|
|
38
|
-
* In order to be notified about new IAM, the application must register to correct notification *kSMNotification_Event_DidReceiveInAppMessage*
|
|
39
|
-
* (Please read SMNSNotification for additional information).
|
|
40
|
-
* This notification will provide you with the IAM's unique ID.
|
|
41
|
-
* Please be aware that it’s the unique application’s chance to capture and store that information.
|
|
42
|
-
*
|
|
43
|
-
* ##Displaying IAM
|
|
44
|
-
*
|
|
45
|
-
* As IAM and remote-notification share the same format, they are both displayed using the same APIs.
|
|
46
|
-
* Please read the documentation in SMManager(RemoteNotification) to know how to display any kind of notification.
|
|
47
|
-
*
|
|
48
|
-
* Since sdk v 2.5 you have the possibility to store the In App Message on your side and process them the way you want
|
|
49
|
-
* In order to do that, once you are notified that In App Messages are available you can call getInAppMessages to receive a NSArray of SMInAppMessage
|
|
50
|
-
* Once a SMInAppMessage has been displayed and has been seen by the user you need to call setInAppMessageAsSeen: to inform Selligent that the In App message has been opened
|
|
51
|
-
* In case there is links in the In App Message and in case one of the link is triggered by user please call executeLinkAction:: to process the action related to the link and inform Selligent that the link has been clicked
|
|
52
|
-
*
|
|
53
|
-
* ##Fetching modes
|
|
54
|
-
* IAM may be retrieved from two different modes corresponding to the application's state:
|
|
55
|
-
*
|
|
56
|
-
* * Foreground-fetch -- When the application is in foreground.
|
|
57
|
-
* * Background-fetch -- When the application is in background.
|
|
58
|
-
*
|
|
59
|
-
* Each of these modes is **optional**. In other words, you can use one mode or the other, or even both at the same time.
|
|
60
|
-
* Choosing the adequate mode depends on the application's need and can be managed by the application's developper.
|
|
61
|
-
* Off course, to allow the SDK to retrieve IAM as fast as possible, we recommand using both modes at the same time.
|
|
62
|
-
*
|
|
63
|
-
* Following documentation explains how to activate each mode:
|
|
64
|
-
*
|
|
65
|
-
* ##Fetching IAM in foreground
|
|
66
|
-
* In order to retrieve IAM while the application is running, make sure to do the folllowing:
|
|
67
|
-
*
|
|
68
|
-
* - Create and configure an SMManagerSettingIAM instance accordingly.
|
|
69
|
-
* - Provide the created SMManagerSettingIAM instance to SMManager before starting the library
|
|
70
|
-
* - Enable In App message by calling enableInAppMessage: when your application needs it.
|
|
71
|
-
*
|
|
72
|
-
* ##Fetching IAM in background
|
|
73
|
-
* Initially, this mode has been added as a complementary-option to the foreground-mode.
|
|
74
|
-
* However, it can be used as a single-fetch-mode if fits best your application's need.
|
|
75
|
-
*
|
|
76
|
-
* To understand better how often the OS will execute the background-fetch, make sure to read the following [Apple-documentation](https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html#//apple_ref/doc/uid/TP40007072-CH4-SW56)
|
|
77
|
-
*
|
|
78
|
-
* In order to support this mode, make sure to :
|
|
79
|
-
*
|
|
80
|
-
* - Create the SMManagerSettingIAM instance accordingly.
|
|
81
|
-
* - Provide the created SMManagerSettingIAM instance to SMManager before starting the library.
|
|
82
|
-
* - In the application's target, enable the following: Capabilities > Background Modes > Background Fetch
|
|
83
|
-
* - Implement performFetchWithCompletionHandler: in UIApplicaiton's delegate (under delegate method application:performFetchWithCompletionHandler:)
|
|
84
|
-
* - Enable In App message by calling enableInAppMessage: when your application needs it.
|
|
85
|
-
*/
|
|
86
|
-
@interface SMManager (InAppMessage)
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Call this API in order to enable / disable the IAM-service according to your application's need.
|
|
90
|
-
* @param shouldEnable TRUE will enable IAM. FALSE will disable it.
|
|
91
|
-
* @discussion Most application will call this API right after starting the SDK.
|
|
92
|
-
* However, it make no harm to call it later on when user trigger, for instance, a UISwitch.
|
|
93
|
-
* @warning Before enabling IAM-service, make sure to :
|
|
94
|
-
*
|
|
95
|
-
* * Start the SDK. Enabling the IAM-service before starting the SDK will have no effect.
|
|
96
|
-
* * Configure correctly the IAM-service via [configureInAppMessageServiceWithSetting:]([SMManagerSetting configureInAppMessageServiceWithSetting:])
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
|
-
- (void) enableInAppMessage:(BOOL)shouldEnable;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* This will allow the SDK to fetch the IAM when the OS will allow so.
|
|
103
|
-
* @discussion To be included in application:performFetchWithCompletionHandler:
|
|
104
|
-
* @param completionHandler The block-completion to be processed. Provided by the delegate call
|
|
105
|
-
* @warning Make sure to enable background-fetch in the application's capabilities
|
|
106
|
-
*/
|
|
107
|
-
- (void) performIAMFetchWithCompletionHandler:(void (^_Nullable)(UIBackgroundFetchResult))completionHandler;
|
|
108
|
-
|
|
109
|
-
/*!
|
|
110
|
-
* @abstract This will return an array of In App Messages
|
|
111
|
-
* @discussion All the valid IAM will be retrieved even if they were already provided to the device
|
|
112
|
-
* @return returns an NSArray of SMInAppMessage
|
|
113
|
-
*/
|
|
114
|
-
- (NSArray*_Nonnull) getInAppMessages;
|
|
115
|
-
|
|
116
|
-
/*!
|
|
117
|
-
* @abstract This method will mark an IAM as viewed, send the Open event to the server and update SMInAppMessage object in cache with isViewed property set to true
|
|
118
|
-
* @discussion The message will still be provided to the device with the flag isViewed set to true
|
|
119
|
-
* @param inAppMessage an SMInAppMessage object
|
|
120
|
-
* @see SMInAppMessage
|
|
121
|
-
*/
|
|
122
|
-
- (void) setInAppMessageAsSeen:(SMInAppMessage*_Nullable)inAppMessage;
|
|
123
|
-
|
|
124
|
-
/*!
|
|
125
|
-
* @abstract This method will mark an IAM as unseen
|
|
126
|
-
* @discussion The message will be provided to the device with the flag isViewed set to false
|
|
127
|
-
* @param inAppMessage an SMInAppMessage object
|
|
128
|
-
* @see SMInAppMessage
|
|
129
|
-
*/
|
|
130
|
-
- (void) setInAppMessageAsUnseen:(SMInAppMessage*_Nullable)inAppMessage;
|
|
131
|
-
|
|
132
|
-
/*!
|
|
133
|
-
* @abstract This method will mark an IAM as deleted
|
|
134
|
-
* @discussion The message will be not be provided again to the device once deleted
|
|
135
|
-
* @param inAppMessage an SMInAppMessage object
|
|
136
|
-
* @see SMInAppMessage
|
|
137
|
-
*/
|
|
138
|
-
- (void) setInAppMessageAsDeleted:(SMInAppMessage*_Nullable)inAppMessage;
|
|
139
|
-
|
|
140
|
-
/*!
|
|
141
|
-
* @abstract This method must be called whenever a user has clicked on a link that you manage to display
|
|
142
|
-
* @discussion This will allow the sdk to inform the services that a link has been clicked and to process the action associated with the link
|
|
143
|
-
* @param link a SMLink object
|
|
144
|
-
* @param inAppMessage a SMInAppMessage object
|
|
145
|
-
* @see SMLink
|
|
146
|
-
* @see SMInAppMessage
|
|
147
|
-
*/
|
|
148
|
-
- (void) executeLinkAction:(SMLink*_Nullable)link InAppMessage:(SMInAppMessage*_Nullable)inAppMessage;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @abstract This method will allow you to provide an instance of a class to the sdk . This class will implement the WKNavigationDelegate methods
|
|
152
|
-
* In this case when the sdk displays an In App Message in a WKWebView you will for example be able to process the linked click on the app side by implementing decidePolicyForNavigationAction on the provided class
|
|
153
|
-
* @param delegate an object implementing WKNavigationDelegate methods
|
|
154
|
-
*/
|
|
155
|
-
- (void) inAppMessageWKNavigationDelegate:(id <WKNavigationDelegate>_Nullable) delegate;
|
|
156
|
-
|
|
157
|
-
/*!
|
|
158
|
-
* @abstract This method must be called whenever a user has clicked on a link that you manage to display
|
|
159
|
-
* @discussion This will allow the sdk to inform the services that a link has been clicked and to process the action associated with the link
|
|
160
|
-
*/
|
|
161
|
-
- (void) removeViewController;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Used to let the app display the in-app message linked to a remote notification
|
|
165
|
-
* @abstract this setting will allow you to manage on app side the display of the in-app message linked to a push remote notification
|
|
166
|
-
* In order to display it in your side the delegate object should implement [SMManagerInAppMessageDelegate displayInAppMessage:] method it will provide tha app with a SMInAppMessage object
|
|
167
|
-
* @param delegate an object implementing SMManagerInAppMessageDelegate methods
|
|
168
|
-
* @see SMManagerInAppMessageDelegate
|
|
169
|
-
*/
|
|
170
|
-
- (void) inAppMessageDelegate:(id <SMManagerInAppMessageDelegate>_Nullable) delegate;
|
|
171
|
-
|
|
172
|
-
@end
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMManager+Location.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Samy Ziat on 02/12/15.
|
|
6
|
-
// Copyright © 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMManager.h"
|
|
10
|
-
|
|
11
|
-
/*!
|
|
12
|
-
* In order to use the location services features provided by the sdk you will mandatory need to use the lsdk library supporting the plotproject framework .
|
|
13
|
-
* Otherwise calling the method in this SMManager category will have no effect and no ios api related to geofencing will be called (as this is all done by the plot project framework)
|
|
14
|
-
*/
|
|
15
|
-
@interface SMManager (Location)
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Enable geolocation services
|
|
19
|
-
*
|
|
20
|
-
* @discussion This optional call will enable geolocation services at sdk level. it is independent of iOS location authorisation
|
|
21
|
-
* If you use plotproject for geolocation it will be mandatory to call it if you have set enableOnFirstRun to false in the plotconfig.json
|
|
22
|
-
* Call this API according to your application's need.
|
|
23
|
-
*/
|
|
24
|
-
- (void) enableGeoLocation;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Disable geolocation services
|
|
28
|
-
*
|
|
29
|
-
* @discussion This optional call will disable geolocation services at sdk level. it is independent of iOS location authorisation
|
|
30
|
-
* Call this API according to your application's need.
|
|
31
|
-
*/
|
|
32
|
-
- (void) disableGeoLocation;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Check the geolocation services status
|
|
36
|
-
*
|
|
37
|
-
* @discussion This optional call will inform you if geolocation services at sdk level are enabled. it is independent of iOS location authorisation
|
|
38
|
-
*/
|
|
39
|
-
- (BOOL) isGeoLocationEnabled;
|
|
40
|
-
|
|
41
|
-
@end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// SMManager+SMLog.h
|
|
3
|
-
// MobileSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Samy Ziat on 29/09/15.
|
|
6
|
-
// Copyright (c) 2015 Selligent. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import "SMManager.h"
|
|
10
|
-
#import "SMLog.h"
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* This category will help you debug the library.
|
|
14
|
-
* Should you want to get back to us, please set logLevel to kSMLogLevel_All and provide with console logs.
|
|
15
|
-
*/
|
|
16
|
-
@interface SMManager (Log)
|
|
17
|
-
|
|
18
|
-
/*!
|
|
19
|
-
* Set the log level of the library console
|
|
20
|
-
* @discussion This is an optional setting that may help you debug the library calls.
|
|
21
|
-
* This call can be done at any time (before or after starting the library).
|
|
22
|
-
* However, in order to avoid missing any error log, we recommand setting this value before starting the library.
|
|
23
|
-
* @param logLevel SMLogLevel enumeration type. Default = kSMLogLevel_None
|
|
24
|
-
* @warning It is developer's responsability to enable log-level in Debug or release mode.
|
|
25
|
-
* No distinction are being aplied by the library.
|
|
26
|
-
* For obvious performance reason, it is always recommended to turn log off in release mode.
|
|
27
|
-
* @see SMLogLevel
|
|
28
|
-
*/
|
|
29
|
-
- (void) applyLogLevel:(SMLogLevel)logLevel;
|
|
30
|
-
|
|
31
|
-
@end
|