react-native-mapp-plugin 1.0.4-beta6 → 1.0.4-beta7
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/.idea/React-native-plugin.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/{android/.idea → .idea}/vcs.xml +5 -5
- package/.idea/workspace.xml +85 -0
- package/.vscode/settings.json +2 -2
- package/CustomEvent.js +47 -47
- package/Mapp.js +414 -414
- package/MappEventEmitter.js +41 -41
- package/README.md +93 -93
- package/RNMappPlugin.podspec +29 -29
- package/__package.json +37 -37
- package/android/.classpath +6 -6
- package/android/.project +34 -34
- package/android/.settings/org.eclipse.buildship.core.prefs +13 -13
- package/android/build.gradle +75 -75
- package/android/gradle/wrapper/gradle-wrapper.properties +7 -7
- package/android/gradle.properties +15 -15
- package/android/src/main/AndroidManifest.xml +65 -65
- package/android/src/main/java/com/reactlibrary/ActivityListener.java +43 -43
- package/android/src/main/java/com/reactlibrary/Event.java +28 -28
- package/android/src/main/java/com/reactlibrary/EventEmitter.java +153 -153
- package/android/src/main/java/com/reactlibrary/HelperActivity.java +254 -254
- package/android/src/main/java/com/reactlibrary/IntentNotificationEvent.java +54 -54
- package/android/src/main/java/com/reactlibrary/MessageService.java +21 -21
- package/android/src/main/java/com/reactlibrary/MyPushBroadcastReceiver.java +43 -43
- package/android/src/main/java/com/reactlibrary/PushNotificationEvent.java +37 -37
- package/android/src/main/java/com/reactlibrary/RNMappPluginModule.java +601 -601
- package/android/src/main/java/com/reactlibrary/RNMappPluginPackage.java +34 -34
- package/android/src/main/java/com/reactlibrary/RNUtils.java +191 -191
- package/android/src/main/java/com/reactlibrary/RequestPermissionsTask.java +58 -58
- package/android/src/main/res/values/styles.xml +14 -14
- package/index.js +8 -8
- package/ios/Frameworks/AppoxeeInapp.framework/Versions/A/Headers/APXInBoxMessage.h +101 -101
- package/ios/Frameworks/AppoxeeInapp.framework/Versions/A/Headers/AppoxeeInapp.h +153 -153
- package/ios/Frameworks/AppoxeeInapp.framework/Versions/A/Headers/AppoxeeInappSDK.h +9 -9
- package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/Headers/AppoxeeLocationManager.h +122 -122
- package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/Headers/AppoxeeLocationServices.h +10 -10
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXClientDevice.h +26 -26
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXInterfaceService.h +49 -49
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXPushNotification.h +92 -92
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXPushNotificationAction.h +20 -20
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXPushNotificationActionButton.h +19 -19
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXPushNotificationActionButtonAction.h +34 -34
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/APXRichMessage.h +58 -58
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/Appoxee.h +840 -840
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/AppoxeeManager.h +385 -385
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/A/Headers/AppoxeeSDK.h +12 -12
- package/ios/Frameworks/AppoxeeSDKResources.bundle/app_conf.json +340 -340
- package/ios/RNMappEventEmmiter.h +25 -25
- package/ios/RNMappEventEmmiter.m +221 -221
- package/ios/RNMappPluginModule.h +10 -10
- package/ios/RNMappPluginModule.m +311 -311
- package/iospatch.sh +13 -13
- package/jsdoc.conf.json +14 -14
- package/package.json +49 -45
- package/android/.gradle/5.6.4/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/5.6.4/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/5.6.4/fileChanges/last-build.bin +0 -0
- package/android/.gradle/5.6.4/fileContent/fileContent.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/5.6.4/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/5.6.4/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/5.6.4/gc.properties +0 -0
- package/android/.gradle/5.6.4/javaCompile/classAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/jarAnalysis.bin +0 -0
- package/android/.gradle/5.6.4/javaCompile/javaCompile.lock +0 -0
- package/android/.gradle/5.6.4/javaCompile/taskHistory.bin +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.0-rc-1/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/7.0-rc-1/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.0-rc-1/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.0-rc-1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.0-rc-1/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/compiler.xml +0 -6
- package/android/.idea/gradle.xml +0 -21
- package/android/.idea/jarRepositories.xml +0 -35
- package/android/.idea/libraries/Gradle__androidx_activity_activity_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_annotation_annotation_1_1_0.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_1_2_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_appcompat_appcompat_resources_1_2_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_common_2_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_arch_core_core_runtime_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_asynclayoutinflater_asynclayoutinflater_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_collection_collection_1_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_coordinatorlayout_coordinatorlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_core_core_1_3_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_cursoradapter_cursoradapter_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_customview_customview_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_documentfile_documentfile_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_drawerlayout_drawerlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_fragment_fragment_1_1_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_interpolator_interpolator_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_ui_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_core_utils_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_v13_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_legacy_legacy_support_v4_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_common_2_1_0.xml +0 -11
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_livedata_core_2_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_runtime_2_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_lifecycle_lifecycle_viewmodel_2_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_loader_loader_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_localbroadcastmanager_localbroadcastmanager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_media_media_1_0_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_print_print_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_recyclerview_recyclerview_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_savedstate_savedstate_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_slidingpanelayout_slidingpanelayout_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_swiperefreshlayout_swiperefreshlayout_1_0_0_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_vectordrawable_vectordrawable_animated_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_versionedparcelable_versionedparcelable_1_1_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__androidx_viewpager_viewpager_1_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_fresco_drawee_0_8_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fbcore_0_8_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_fresco_0_8_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_0_8_1_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_facebook_fresco_imagepipeline_okhttp_0_8_1_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_facebook_react_react_native_0_20_1_aar.xml +0 -19
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_1_2_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_facebook_stetho_stetho_okhttp_1_2_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_fasterxml_jackson_core_jackson_core_2_2_3.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_base_17_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_basement_17_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_location_16_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_places_placereport_16_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_stats_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_android_gms_play_services_tasks_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_auto_value_auto_value_annotations_1_6_5.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_code_findbugs_jsr305_3_0_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_code_gson_gson_2_8_5.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_dagger_dagger_2_24.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_common_19_0_0_aar.xml +0 -15
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_20_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_iid_interop_17_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_measurement_connector_18_0_0_aar.xml +0 -11
- package/android/.idea/libraries/Gradle__com_google_firebase_firebase_messaging_20_0_0_aar.xml +0 -13
- package/android/.idea/libraries/Gradle__com_mapp_sdk_mapp_android_6_0_17_special7_aar.xml +0 -16
- package/android/.idea/libraries/Gradle__com_nineoldandroids_library_2_4_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_parse_bolts_bolts_android_1_1_4.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_2_5_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okhttp_okhttp_ws_2_5_0.xml +0 -13
- package/android/.idea/libraries/Gradle__com_squareup_okio_okio_1_6_0.xml +0 -13
- package/android/.idea/libraries/Gradle__commons_cli_commons_cli_1_2.xml +0 -13
- package/android/.idea/libraries/Gradle__javax_inject_javax_inject_1.xml +0 -13
- package/android/.idea/libraries/Gradle__org_webkit_android_jsc_r174650_aar.xml +0 -11
- package/android/.idea/misc.xml +0 -9
- package/android/.idea/modules/android.iml +0 -122
- package/android/.idea/modules/app/android.app.iml +0 -26
- package/android/.idea/modules.xml +0 -9
- package/android/build/generated/source/buildConfig/debug/com/reactlibrary/BuildConfig.java +0 -18
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml +0 -70
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json +0 -1
- package/android/build/intermediates/aar_main_jar/debug/classes.jar +0 -0
- package/android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/typedefs.txt +0 -0
- package/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/R.txt +0 -2993
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/debug-mergeNativeLibs/merge-state +0 -0
- 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/incremental/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/packageDebugResources/merged.dir/values/values.xml +0 -13
- package/android/build/intermediates/incremental/packageDebugResources/merger.xml +0 -11
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/ActivityListener.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/Event.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/EventEmitter$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/EventEmitter$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/EventEmitter$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/EventEmitter.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/HelperActivity$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/HelperActivity$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/HelperActivity$ActivityResult.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/HelperActivity.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/IntentNotificationEvent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/MessageService.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/MyPushBroadcastReceiver.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/PushNotificationEvent.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginModule$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginModule$2.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginModule$3.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginModule$4.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginModule.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNMappPluginPackage.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNUtils$1.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RNUtils.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RequestPermissionsTask$Callback.class +0 -0
- package/android/build/intermediates/javac/debug/classes/com/reactlibrary/RequestPermissionsTask.class +0 -0
- package/android/build/intermediates/library_manifest/debug/AndroidManifest.xml +0 -70
- package/android/build/intermediates/local_only_symbol_list/debug/R-def.txt +0 -3
- package/android/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt +0 -134
- package/android/build/intermediates/merged_java_res/debug/out.jar +0 -0
- package/android/build/intermediates/merged_manifests/debug/output.json +0 -1
- package/android/build/intermediates/packaged_res/debug/values/values.xml +0 -13
- package/android/build/intermediates/symbol_list_with_package_name/debug/package-aware-r.txt +0 -1856
- package/android/build/outputs/aar/android-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -135
- package/android/local.properties +0 -8
- package/ios/Frameworks/AppoxeeInapp.framework/AppoxeeInapp +0 -1
- package/ios/Frameworks/AppoxeeInapp.framework/Headers +0 -1
- package/ios/Frameworks/AppoxeeInapp.framework/Versions/Current +0 -1
- package/ios/Frameworks/AppoxeeLocationServices.framework/AppoxeeLocationServices +0 -1
- package/ios/Frameworks/AppoxeeLocationServices.framework/Headers +0 -1
- package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/Current +0 -1
- package/ios/Frameworks/AppoxeeSDK.framework/AppoxeeSDK +0 -1
- package/ios/Frameworks/AppoxeeSDK.framework/Headers +0 -1
- package/ios/Frameworks/AppoxeeSDK.framework/Versions/Current +0 -1
package/ios/Frameworks/AppoxeeLocationServices.framework/Versions/A/Headers/AppoxeeLocationManager.h
CHANGED
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AppoxeeLocationManager.h
|
|
3
|
-
// AppoxeeLocationServices
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 10/30/14.
|
|
6
|
-
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <CoreLocation/CoreLocation.h>
|
|
11
|
-
|
|
12
|
-
@class AppoxeeLocationManager;
|
|
13
|
-
|
|
14
|
-
@protocol AppoxeeLocationManagerDelegate <NSObject>
|
|
15
|
-
|
|
16
|
-
@optional
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
Notifies on faliure.
|
|
20
|
-
@brief Method for notifiyng when a failure happend.
|
|
21
|
-
*/
|
|
22
|
-
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didFailWithError:(nullable NSError *)error;
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
Notifies when a device entered into a geographic region.
|
|
26
|
-
@brief Method for notifiyng when geographic region is entered by the device.
|
|
27
|
-
<pre><code>
|
|
28
|
-
- (void)locationManager:(AppoxeeLocationManager *)manager didEnterGeoRegion:(CLCircularRegion *)geoRegion
|
|
29
|
-
{
|
|
30
|
-
// Entered a region.
|
|
31
|
-
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
32
|
-
|
|
33
|
-
NSLog(@"Entered location id of: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
34
|
-
}
|
|
35
|
-
</code></pre>
|
|
36
|
-
*/
|
|
37
|
-
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didEnterGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
Notifies when a device exits from a geographic region.
|
|
41
|
-
@brief Method for notifiyng when geographic region is exited by the device.
|
|
42
|
-
<pre><code>
|
|
43
|
-
- (void)locationManager:(AppoxeeLocationManager *)manager didExitGeoRegion:(CLCircularRegion *)geoRegion
|
|
44
|
-
{
|
|
45
|
-
// Exited a region.
|
|
46
|
-
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
47
|
-
|
|
48
|
-
NSLog(@"Entered location id: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
49
|
-
}
|
|
50
|
-
</code></pre>
|
|
51
|
-
*/
|
|
52
|
-
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didExitGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
53
|
-
|
|
54
|
-
@end
|
|
55
|
-
|
|
56
|
-
/*!
|
|
57
|
-
* Appoxee Location manager is the main interface API for developers who implements Appoxee Location Services.
|
|
58
|
-
*/
|
|
59
|
-
@interface AppoxeeLocationManager : NSObject
|
|
60
|
-
|
|
61
|
-
/*!
|
|
62
|
-
* between 1 - 5, where 1 prints all logs and 5 prints critical logs.
|
|
63
|
-
*/
|
|
64
|
-
@property (nonatomic) NSInteger logLevel;
|
|
65
|
-
@property (nonatomic) NSArray<CLLocation*>* _Nullable regions;
|
|
66
|
-
|
|
67
|
-
/*!
|
|
68
|
-
* The delegate for recieving AppoxeeLocationManagerDelegate events.
|
|
69
|
-
*/
|
|
70
|
-
@property (nonatomic, weak, nullable) id <AppoxeeLocationManagerDelegate> delegate;
|
|
71
|
-
|
|
72
|
-
/*!
|
|
73
|
-
* The last known location of the user.
|
|
74
|
-
*/
|
|
75
|
-
@property (nonatomic, strong, nullable) CLLocation *lastLocation;
|
|
76
|
-
@property (nonatomic, nonnull, readonly) NSString *locationServicesVersion;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
AppoxeeLocationManager instance
|
|
80
|
-
@brief Method for getting a singleton instance of AppoxeeLocationManager
|
|
81
|
-
<pre><code>
|
|
82
|
-
AppoxeeLocationManager *locationManager = [AppoxeeLocationManager shared];
|
|
83
|
-
</code></pre>
|
|
84
|
-
@return AppoxeeLocationManager an Instance Type of AppoxeeLocationManager.
|
|
85
|
-
*/
|
|
86
|
-
+ (nullable instancetype)shared;
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
Start monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
90
|
-
@brief Method for starting monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
91
|
-
@attention Authorization status must be kCLAuthorizationStatusAuthorizedAlways or kCLAuthorizationStatusAuthorized, else method will not execute.
|
|
92
|
-
<pre><code>
|
|
93
|
-
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
94
|
-
{
|
|
95
|
-
[[Appoxee shared] engageWithLaunchOptions:launchOptions andDelegate:self andSDKID:@"sdk.id" andAppSecret:@"app.secret"];
|
|
96
|
-
// Set an observer, and enable location monitoring when AppoxeeSDK is ready. This can also be achived when listening to @"APX_Ready" notification with NSNotificationCenter
|
|
97
|
-
[[Appoxee shared] addObserver:self forKeyPath:@"isReady" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL];
|
|
98
|
-
|
|
99
|
-
return YES;
|
|
100
|
-
}
|
|
101
|
-
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
|
|
102
|
-
{
|
|
103
|
-
if ([keyPath isEqualToString:@"isReady"]) {
|
|
104
|
-
|
|
105
|
-
[[Appoxee shared] removeObserver:self forKeyPath:@"isReady"];
|
|
106
|
-
[[AppoxeeLocationManager shared] enableLocationMonitoring];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
</code></pre>
|
|
110
|
-
*/
|
|
111
|
-
- (void)enableLocationMonitoring;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
Stop monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
115
|
-
@brief Method for stoping monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
116
|
-
<pre><code>
|
|
117
|
-
[[AppoxeeLocationManager shared] disableLocationMonitoring];
|
|
118
|
-
</code></pre>
|
|
119
|
-
*/
|
|
120
|
-
- (void)disableLocationMonitoring;
|
|
121
|
-
|
|
122
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationManager.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 10/30/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <CoreLocation/CoreLocation.h>
|
|
11
|
+
|
|
12
|
+
@class AppoxeeLocationManager;
|
|
13
|
+
|
|
14
|
+
@protocol AppoxeeLocationManagerDelegate <NSObject>
|
|
15
|
+
|
|
16
|
+
@optional
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
Notifies on faliure.
|
|
20
|
+
@brief Method for notifiyng when a failure happend.
|
|
21
|
+
*/
|
|
22
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didFailWithError:(nullable NSError *)error;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
Notifies when a device entered into a geographic region.
|
|
26
|
+
@brief Method for notifiyng when geographic region is entered by the device.
|
|
27
|
+
<pre><code>
|
|
28
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didEnterGeoRegion:(CLCircularRegion *)geoRegion
|
|
29
|
+
{
|
|
30
|
+
// Entered a region.
|
|
31
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
32
|
+
|
|
33
|
+
NSLog(@"Entered location id of: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
34
|
+
}
|
|
35
|
+
</code></pre>
|
|
36
|
+
*/
|
|
37
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didEnterGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
Notifies when a device exits from a geographic region.
|
|
41
|
+
@brief Method for notifiyng when geographic region is exited by the device.
|
|
42
|
+
<pre><code>
|
|
43
|
+
- (void)locationManager:(AppoxeeLocationManager *)manager didExitGeoRegion:(CLCircularRegion *)geoRegion
|
|
44
|
+
{
|
|
45
|
+
// Exited a region.
|
|
46
|
+
// Notice that the .identifier @property of the CLCircularRegion instance is the location ID as created By Teradata.
|
|
47
|
+
|
|
48
|
+
NSLog(@"Entered location id: %@, of coordinates: %.2f | %.2f, with radius: %.2f", geoRegion.identifier, geoRegion.center.latitude, geoRegion.center.longitude, geoRegion.radius);
|
|
49
|
+
}
|
|
50
|
+
</code></pre>
|
|
51
|
+
*/
|
|
52
|
+
- (void)locationManager:(nonnull AppoxeeLocationManager *)manager didExitGeoRegion:(nonnull CLCircularRegion *)geoRegion;
|
|
53
|
+
|
|
54
|
+
@end
|
|
55
|
+
|
|
56
|
+
/*!
|
|
57
|
+
* Appoxee Location manager is the main interface API for developers who implements Appoxee Location Services.
|
|
58
|
+
*/
|
|
59
|
+
@interface AppoxeeLocationManager : NSObject
|
|
60
|
+
|
|
61
|
+
/*!
|
|
62
|
+
* between 1 - 5, where 1 prints all logs and 5 prints critical logs.
|
|
63
|
+
*/
|
|
64
|
+
@property (nonatomic) NSInteger logLevel;
|
|
65
|
+
@property (nonatomic) NSArray<CLLocation*>* _Nullable regions;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* The delegate for recieving AppoxeeLocationManagerDelegate events.
|
|
69
|
+
*/
|
|
70
|
+
@property (nonatomic, weak, nullable) id <AppoxeeLocationManagerDelegate> delegate;
|
|
71
|
+
|
|
72
|
+
/*!
|
|
73
|
+
* The last known location of the user.
|
|
74
|
+
*/
|
|
75
|
+
@property (nonatomic, strong, nullable) CLLocation *lastLocation;
|
|
76
|
+
@property (nonatomic, nonnull, readonly) NSString *locationServicesVersion;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
AppoxeeLocationManager instance
|
|
80
|
+
@brief Method for getting a singleton instance of AppoxeeLocationManager
|
|
81
|
+
<pre><code>
|
|
82
|
+
AppoxeeLocationManager *locationManager = [AppoxeeLocationManager shared];
|
|
83
|
+
</code></pre>
|
|
84
|
+
@return AppoxeeLocationManager an Instance Type of AppoxeeLocationManager.
|
|
85
|
+
*/
|
|
86
|
+
+ (nullable instancetype)shared;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
Start monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
90
|
+
@brief Method for starting monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalMinimum if application supports background fetch.
|
|
91
|
+
@attention Authorization status must be kCLAuthorizationStatusAuthorizedAlways or kCLAuthorizationStatusAuthorized, else method will not execute.
|
|
92
|
+
<pre><code>
|
|
93
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
94
|
+
{
|
|
95
|
+
[[Appoxee shared] engageWithLaunchOptions:launchOptions andDelegate:self andSDKID:@"sdk.id" andAppSecret:@"app.secret"];
|
|
96
|
+
// Set an observer, and enable location monitoring when AppoxeeSDK is ready. This can also be achived when listening to @"APX_Ready" notification with NSNotificationCenter
|
|
97
|
+
[[Appoxee shared] addObserver:self forKeyPath:@"isReady" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld) context:NULL];
|
|
98
|
+
|
|
99
|
+
return YES;
|
|
100
|
+
}
|
|
101
|
+
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context
|
|
102
|
+
{
|
|
103
|
+
if ([keyPath isEqualToString:@"isReady"]) {
|
|
104
|
+
|
|
105
|
+
[[Appoxee shared] removeObserver:self forKeyPath:@"isReady"];
|
|
106
|
+
[[AppoxeeLocationManager shared] enableLocationMonitoring];
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
</code></pre>
|
|
110
|
+
*/
|
|
111
|
+
- (void)enableLocationMonitoring;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
Stop monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
115
|
+
@brief Method for stoping monitoring for geo fences. Method will set a UIApplicationBackgroundFetchIntervalNever if application supports background fetch.
|
|
116
|
+
<pre><code>
|
|
117
|
+
[[AppoxeeLocationManager shared] disableLocationMonitoring];
|
|
118
|
+
</code></pre>
|
|
119
|
+
*/
|
|
120
|
+
- (void)disableLocationMonitoring;
|
|
121
|
+
|
|
122
|
+
@end
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
//
|
|
2
|
-
// AppoxeeLocationServices.h
|
|
3
|
-
// AppoxeeLocationServices
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 11/25/14.
|
|
6
|
-
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
1
|
+
//
|
|
2
|
+
// AppoxeeLocationServices.h
|
|
3
|
+
// AppoxeeLocationServices
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 11/25/14.
|
|
6
|
+
// Copyright (c) 2014 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
11
|
#import <AppoxeeLocationServices/AppoxeeLocationManager.h>
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
//
|
|
2
|
-
// APXClientDevice.h
|
|
3
|
-
// AppoxeeSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 5/20/15.
|
|
6
|
-
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
|
|
11
|
-
@interface APXClientDevice : NSObject
|
|
12
|
-
|
|
13
|
-
@property (nonatomic, strong) NSString *sdkVersion; // 4.1
|
|
14
|
-
@property (nonatomic, strong) NSString *locale; // i.e en
|
|
15
|
-
@property (nonatomic, strong) NSString *timeZone; // Asia / Jerusalem
|
|
16
|
-
@property (nonatomic, strong) NSString *pushToken;
|
|
17
|
-
@property (nonatomic, strong) NSString *udid;
|
|
18
|
-
@property (nonatomic, strong) NSString *udidHashed;
|
|
19
|
-
@property (nonatomic, strong) NSString *osName;
|
|
20
|
-
@property (nonatomic, strong) NSString *osVersion;
|
|
21
|
-
@property (nonatomic, strong) NSString *hardwearType;
|
|
22
|
-
@property (nonatomic, strong) NSString *applicationID;
|
|
23
|
-
@property (nonatomic, getter = isInboxEnabled) BOOL inboxEnabled;
|
|
24
|
-
@property (nonatomic, getter = isPushEnabled) BOOL pushEnabled;
|
|
25
|
-
|
|
26
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// APXClientDevice.h
|
|
3
|
+
// AppoxeeSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 5/20/15.
|
|
6
|
+
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
@interface APXClientDevice : NSObject
|
|
12
|
+
|
|
13
|
+
@property (nonatomic, strong) NSString *sdkVersion; // 4.1
|
|
14
|
+
@property (nonatomic, strong) NSString *locale; // i.e en
|
|
15
|
+
@property (nonatomic, strong) NSString *timeZone; // Asia / Jerusalem
|
|
16
|
+
@property (nonatomic, strong) NSString *pushToken;
|
|
17
|
+
@property (nonatomic, strong) NSString *udid;
|
|
18
|
+
@property (nonatomic, strong) NSString *udidHashed;
|
|
19
|
+
@property (nonatomic, strong) NSString *osName;
|
|
20
|
+
@property (nonatomic, strong) NSString *osVersion;
|
|
21
|
+
@property (nonatomic, strong) NSString *hardwearType;
|
|
22
|
+
@property (nonatomic, strong) NSString *applicationID;
|
|
23
|
+
@property (nonatomic, getter = isInboxEnabled) BOOL inboxEnabled;
|
|
24
|
+
@property (nonatomic, getter = isPushEnabled) BOOL pushEnabled;
|
|
25
|
+
|
|
26
|
+
@end
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
//
|
|
2
|
-
// APXInterfaceService.h
|
|
3
|
-
// AppoxeeSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 7/12/15.
|
|
6
|
-
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import <UIKit/UIKit.h>
|
|
11
|
-
#import <CoreLocation/CoreLocation.h>
|
|
12
|
-
|
|
13
|
-
typedef NS_ENUM(NSInteger, APXInterfaceServiceOperation) {
|
|
14
|
-
kAPXInterfaceServiceOperationOne = 1,
|
|
15
|
-
kAPXInterfaceServiceOperationTwo,
|
|
16
|
-
kAPXInterfaceServiceOperationThree,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
typedef void(^APXInterfaceServiceCompletionBlock)(NSError * _Nullable error, id _Nullable data);
|
|
20
|
-
typedef void(^APXInterfaceServiceFetchBlock)(UIBackgroundFetchResult fetchResult);
|
|
21
|
-
|
|
22
|
-
@class APXInterfaceService;
|
|
23
|
-
|
|
24
|
-
@protocol APXInterfaceServiceFetchDelegate <NSObject>
|
|
25
|
-
|
|
26
|
-
@required;
|
|
27
|
-
- (void)interfaceService:(nonnull APXInterfaceService *)service performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock withCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
28
|
-
|
|
29
|
-
@end
|
|
30
|
-
|
|
31
|
-
@interface APXInterfaceService : NSObject
|
|
32
|
-
|
|
33
|
-
+ (nullable instancetype)shared;
|
|
34
|
-
@property (nonatomic, strong, readwrite, nullable) CLLocationManager * locationManager;
|
|
35
|
-
|
|
36
|
-
@property (nonatomic, weak, nullable) id <APXInterfaceServiceFetchDelegate> fetchDelegate;
|
|
37
|
-
|
|
38
|
-
@property (nonatomic, strong, readwrite, nullable) NSString *appID;
|
|
39
|
-
@property (nonatomic, readonly) BOOL isBackgroundFetchAvailable;
|
|
40
|
-
@property (nonatomic, readonly) BOOL isSilentPushAvailable;
|
|
41
|
-
|
|
42
|
-
- (void)performOperation:(APXInterfaceServiceOperation)operation withIdentifier:(nullable NSString *)identifier andData:(nullable NSDictionary *)args andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
43
|
-
|
|
44
|
-
- (void)performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
45
|
-
|
|
46
|
-
+ (NSTimeInterval)timestamp;
|
|
47
|
-
+ (nonnull NSString *)stringTimestamp;
|
|
48
|
-
|
|
49
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// APXInterfaceService.h
|
|
3
|
+
// AppoxeeSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 7/12/15.
|
|
6
|
+
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <UIKit/UIKit.h>
|
|
11
|
+
#import <CoreLocation/CoreLocation.h>
|
|
12
|
+
|
|
13
|
+
typedef NS_ENUM(NSInteger, APXInterfaceServiceOperation) {
|
|
14
|
+
kAPXInterfaceServiceOperationOne = 1,
|
|
15
|
+
kAPXInterfaceServiceOperationTwo,
|
|
16
|
+
kAPXInterfaceServiceOperationThree,
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
typedef void(^APXInterfaceServiceCompletionBlock)(NSError * _Nullable error, id _Nullable data);
|
|
20
|
+
typedef void(^APXInterfaceServiceFetchBlock)(UIBackgroundFetchResult fetchResult);
|
|
21
|
+
|
|
22
|
+
@class APXInterfaceService;
|
|
23
|
+
|
|
24
|
+
@protocol APXInterfaceServiceFetchDelegate <NSObject>
|
|
25
|
+
|
|
26
|
+
@required;
|
|
27
|
+
- (void)interfaceService:(nonnull APXInterfaceService *)service performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock withCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
28
|
+
|
|
29
|
+
@end
|
|
30
|
+
|
|
31
|
+
@interface APXInterfaceService : NSObject
|
|
32
|
+
|
|
33
|
+
+ (nullable instancetype)shared;
|
|
34
|
+
@property (nonatomic, strong, readwrite, nullable) CLLocationManager * locationManager;
|
|
35
|
+
|
|
36
|
+
@property (nonatomic, weak, nullable) id <APXInterfaceServiceFetchDelegate> fetchDelegate;
|
|
37
|
+
|
|
38
|
+
@property (nonatomic, strong, readwrite, nullable) NSString *appID;
|
|
39
|
+
@property (nonatomic, readonly) BOOL isBackgroundFetchAvailable;
|
|
40
|
+
@property (nonatomic, readonly) BOOL isSilentPushAvailable;
|
|
41
|
+
|
|
42
|
+
- (void)performOperation:(APXInterfaceServiceOperation)operation withIdentifier:(nullable NSString *)identifier andData:(nullable NSDictionary *)args andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
43
|
+
|
|
44
|
+
- (void)performFetchWithCompletionHandler:(nullable APXInterfaceServiceFetchBlock)fetchBlock andCompletionBlock:(nullable APXInterfaceServiceCompletionBlock)completionBlock;
|
|
45
|
+
|
|
46
|
+
+ (NSTimeInterval)timestamp;
|
|
47
|
+
+ (nonnull NSString *)stringTimestamp;
|
|
48
|
+
|
|
49
|
+
@end
|
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
//
|
|
2
|
-
// APXPushNotification.h
|
|
3
|
-
// AppoxeeSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 3/8/15.
|
|
6
|
-
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "APXPushNotificationAction.h"
|
|
11
|
-
|
|
12
|
-
@class UNNotificationResponse;
|
|
13
|
-
@class UNNotification;
|
|
14
|
-
|
|
15
|
-
@interface APXPushNotification : NSObject
|
|
16
|
-
|
|
17
|
-
/*!
|
|
18
|
-
* The alert property of a push notification payload.
|
|
19
|
-
*/
|
|
20
|
-
@property (nonatomic, strong, readonly, nullable) NSString *alert;
|
|
21
|
-
|
|
22
|
-
/*!
|
|
23
|
-
* The title property of a push notification payload.
|
|
24
|
-
*/
|
|
25
|
-
@property (nonatomic, strong, readonly, nullable) NSString *title;
|
|
26
|
-
|
|
27
|
-
/*!
|
|
28
|
-
* The subtitle property of a push notification payload.
|
|
29
|
-
*/
|
|
30
|
-
@property (nonatomic, strong, readonly, nullable) NSString *subtitle;
|
|
31
|
-
|
|
32
|
-
/*!
|
|
33
|
-
* The body property of a push notification payload.
|
|
34
|
-
*/
|
|
35
|
-
@property (nonatomic, strong, readonly, nullable) NSString *body;
|
|
36
|
-
|
|
37
|
-
/*!
|
|
38
|
-
* The badge property of a push notification payload.
|
|
39
|
-
*/
|
|
40
|
-
@property (nonatomic, readonly) NSInteger badge;
|
|
41
|
-
|
|
42
|
-
/*!
|
|
43
|
-
* The notification Appoxee unique ID.
|
|
44
|
-
*/
|
|
45
|
-
@property (nonatomic, readonly) NSInteger uniqueID;
|
|
46
|
-
|
|
47
|
-
/*!
|
|
48
|
-
* The extra fields associated with the push notification payload.
|
|
49
|
-
*/
|
|
50
|
-
@property (nonatomic, strong, readonly, nullable) NSDictionary *extraFields;
|
|
51
|
-
|
|
52
|
-
/*!
|
|
53
|
-
* Indicating if push launched the application
|
|
54
|
-
*/
|
|
55
|
-
@property (nonatomic, readonly) BOOL didLaunchApp;
|
|
56
|
-
|
|
57
|
-
/*!
|
|
58
|
-
* Indicating if push was sent with a rich payload.
|
|
59
|
-
*/
|
|
60
|
-
@property (nonatomic, readonly) BOOL isRich;
|
|
61
|
-
|
|
62
|
-
/*!
|
|
63
|
-
* Indicating if the push is silent.
|
|
64
|
-
*/
|
|
65
|
-
@property (nonatomic, readonly) BOOL isSilent;
|
|
66
|
-
|
|
67
|
-
/*!
|
|
68
|
-
* Indicating if the push should fetch content in the background.
|
|
69
|
-
*/
|
|
70
|
-
@property (nonatomic, readonly) BOOL isTriggerUpdate;
|
|
71
|
-
|
|
72
|
-
/*!
|
|
73
|
-
* The associated actions with the push payload.
|
|
74
|
-
*/
|
|
75
|
-
@property (nonatomic, strong, readonly, nullable) APXPushNotificationAction *pushAction;
|
|
76
|
-
|
|
77
|
-
/*!
|
|
78
|
-
* Class initializer with NSDictionary as push payload.
|
|
79
|
-
*/
|
|
80
|
-
+ (nullable instancetype)notificationWithKeyedValues:(nullable NSDictionary *)keyedValues;
|
|
81
|
-
|
|
82
|
-
/*!
|
|
83
|
-
* Class initializer with UNNotification as push payload.
|
|
84
|
-
*/
|
|
85
|
-
+ (nullable instancetype)notificationWithNotification:(nullable UNNotification *)notification;
|
|
86
|
-
|
|
87
|
-
/*!
|
|
88
|
-
* Class initializer with UNNotificationResponse as push payload.
|
|
89
|
-
*/
|
|
90
|
-
+ (nullable instancetype)notificationWithNotificationResponse:(nullable UNNotificationResponse *)notificationResponse;
|
|
91
|
-
|
|
92
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// APXPushNotification.h
|
|
3
|
+
// AppoxeeSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 3/8/15.
|
|
6
|
+
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "APXPushNotificationAction.h"
|
|
11
|
+
|
|
12
|
+
@class UNNotificationResponse;
|
|
13
|
+
@class UNNotification;
|
|
14
|
+
|
|
15
|
+
@interface APXPushNotification : NSObject
|
|
16
|
+
|
|
17
|
+
/*!
|
|
18
|
+
* The alert property of a push notification payload.
|
|
19
|
+
*/
|
|
20
|
+
@property (nonatomic, strong, readonly, nullable) NSString *alert;
|
|
21
|
+
|
|
22
|
+
/*!
|
|
23
|
+
* The title property of a push notification payload.
|
|
24
|
+
*/
|
|
25
|
+
@property (nonatomic, strong, readonly, nullable) NSString *title;
|
|
26
|
+
|
|
27
|
+
/*!
|
|
28
|
+
* The subtitle property of a push notification payload.
|
|
29
|
+
*/
|
|
30
|
+
@property (nonatomic, strong, readonly, nullable) NSString *subtitle;
|
|
31
|
+
|
|
32
|
+
/*!
|
|
33
|
+
* The body property of a push notification payload.
|
|
34
|
+
*/
|
|
35
|
+
@property (nonatomic, strong, readonly, nullable) NSString *body;
|
|
36
|
+
|
|
37
|
+
/*!
|
|
38
|
+
* The badge property of a push notification payload.
|
|
39
|
+
*/
|
|
40
|
+
@property (nonatomic, readonly) NSInteger badge;
|
|
41
|
+
|
|
42
|
+
/*!
|
|
43
|
+
* The notification Appoxee unique ID.
|
|
44
|
+
*/
|
|
45
|
+
@property (nonatomic, readonly) NSInteger uniqueID;
|
|
46
|
+
|
|
47
|
+
/*!
|
|
48
|
+
* The extra fields associated with the push notification payload.
|
|
49
|
+
*/
|
|
50
|
+
@property (nonatomic, strong, readonly, nullable) NSDictionary *extraFields;
|
|
51
|
+
|
|
52
|
+
/*!
|
|
53
|
+
* Indicating if push launched the application
|
|
54
|
+
*/
|
|
55
|
+
@property (nonatomic, readonly) BOOL didLaunchApp;
|
|
56
|
+
|
|
57
|
+
/*!
|
|
58
|
+
* Indicating if push was sent with a rich payload.
|
|
59
|
+
*/
|
|
60
|
+
@property (nonatomic, readonly) BOOL isRich;
|
|
61
|
+
|
|
62
|
+
/*!
|
|
63
|
+
* Indicating if the push is silent.
|
|
64
|
+
*/
|
|
65
|
+
@property (nonatomic, readonly) BOOL isSilent;
|
|
66
|
+
|
|
67
|
+
/*!
|
|
68
|
+
* Indicating if the push should fetch content in the background.
|
|
69
|
+
*/
|
|
70
|
+
@property (nonatomic, readonly) BOOL isTriggerUpdate;
|
|
71
|
+
|
|
72
|
+
/*!
|
|
73
|
+
* The associated actions with the push payload.
|
|
74
|
+
*/
|
|
75
|
+
@property (nonatomic, strong, readonly, nullable) APXPushNotificationAction *pushAction;
|
|
76
|
+
|
|
77
|
+
/*!
|
|
78
|
+
* Class initializer with NSDictionary as push payload.
|
|
79
|
+
*/
|
|
80
|
+
+ (nullable instancetype)notificationWithKeyedValues:(nullable NSDictionary *)keyedValues;
|
|
81
|
+
|
|
82
|
+
/*!
|
|
83
|
+
* Class initializer with UNNotification as push payload.
|
|
84
|
+
*/
|
|
85
|
+
+ (nullable instancetype)notificationWithNotification:(nullable UNNotification *)notification;
|
|
86
|
+
|
|
87
|
+
/*!
|
|
88
|
+
* Class initializer with UNNotificationResponse as push payload.
|
|
89
|
+
*/
|
|
90
|
+
+ (nullable instancetype)notificationWithNotificationResponse:(nullable UNNotificationResponse *)notificationResponse;
|
|
91
|
+
|
|
92
|
+
@end
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//
|
|
2
|
-
// APXPushNotificationAction.h
|
|
3
|
-
// AppoxeeSDK
|
|
4
|
-
//
|
|
5
|
-
// Created by Raz Elkayam on 3/18/15.
|
|
6
|
-
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
-
//
|
|
8
|
-
|
|
9
|
-
#import <Foundation/Foundation.h>
|
|
10
|
-
#import "APXPushNotificationActionButton.h"
|
|
11
|
-
|
|
12
|
-
@interface APXPushNotificationAction : NSObject
|
|
13
|
-
|
|
14
|
-
@property (nonatomic, getter = isAppoxeeCategory, readonly) BOOL appoxeeCategory;
|
|
15
|
-
@property (nonatomic, strong, readonly) NSString *categoryName;
|
|
16
|
-
@property (nonatomic, strong, readonly) NSArray <APXPushNotificationActionButton *> *actionButtons;
|
|
17
|
-
|
|
18
|
-
- (id)initWithKeyedValues:(NSDictionary *)keyedValues;
|
|
19
|
-
|
|
20
|
-
@end
|
|
1
|
+
//
|
|
2
|
+
// APXPushNotificationAction.h
|
|
3
|
+
// AppoxeeSDK
|
|
4
|
+
//
|
|
5
|
+
// Created by Raz Elkayam on 3/18/15.
|
|
6
|
+
// Copyright (c) 2015 Appoxee. All rights reserved.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import "APXPushNotificationActionButton.h"
|
|
11
|
+
|
|
12
|
+
@interface APXPushNotificationAction : NSObject
|
|
13
|
+
|
|
14
|
+
@property (nonatomic, getter = isAppoxeeCategory, readonly) BOOL appoxeeCategory;
|
|
15
|
+
@property (nonatomic, strong, readonly) NSString *categoryName;
|
|
16
|
+
@property (nonatomic, strong, readonly) NSArray <APXPushNotificationActionButton *> *actionButtons;
|
|
17
|
+
|
|
18
|
+
- (id)initWithKeyedValues:(NSDictionary *)keyedValues;
|
|
19
|
+
|
|
20
|
+
@end
|