-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 12.0.1.79
Go to the documentation of this file.
7 #ifndef __GD_SERVICES_H__
8 #define __GD_SERVICES_H__
10 #import <Foundation/Foundation.h>
13 #if __has_extension(attribute_deprecated_with_message)
14 # define DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION __attribute((deprecated("Use bringToFront:completion:error:")))
16 # define DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION __attribute((deprecated))
20 NS_ASSUME_NONNULL_BEGIN
247 - (void) GDServiceClientDidReceiveFrom:(NSString*)application
248 withParams:(
id)params
249 withAttachments:(NSArray<NSString *> *)attachments
250 correspondingToRequestID:(NSString*)requestID;
279 - (void) GDServiceClientDidStartSendingTo:(NSString*)application withFilename:(NSString*)filename correspondingToRequestID:(NSString*)requestID;
310 - (void) GDServiceClientDidFinishSendingTo:(NSString*)application withAttachments:(NSArray<NSString *> *)attachments withParams:(
id)params correspondingToRequestID:(NSString*)requestID;
340 - (void) GDServiceClientWillStartReceivingFrom:(NSString*)application
341 numberOfAttachments:(NSUInteger)attachments
342 forRequestID:(NSString*)requestID;
376 - (void) GDServiceClientWillStartReceivingFrom:(NSString*)application
377 attachmentPath:(NSString*)path
378 fileSize:(NSNumber*)size
379 forRequestID:(NSString*)requestID;
464 + (BOOL) sendTo:(NSString*)application
465 withService:(NSString*)service
466 withVersion:(NSString*)version
467 withMethod:(NSString*)method
468 withParams:(nullable
id)params
469 withAttachments:(nullable NSArray<NSString *> *)attachments
471 requestID:(NSString * _Nullable * _Nullable)requestID
472 error:(NSError**)error;
509 + (BOOL) cancelRequest:(nullable NSString*)requestID toApplication:(NSString*)application;
541 + (BOOL) bringToFront:(nonnull NSString*)application completion:(
void(^)(BOOL) )completion error:(NSError**)error;
565 + (BOOL) bringToFront:(NSString*)application error:(NSError**)error DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION;
584 @property (nullable, weak, getter = getDelegate, setter = setDelegate:) id<GDServiceClientDelegate>
delegate;
666 - (void) GDServiceDidReceiveFrom:(NSString*)application
667 forService:(NSString*)service
668 withVersion:(NSString*)version
669 forMethod:(NSString*)method
670 withParams:(
id)params
671 withAttachments:(NSArray<NSString *> *)attachments
672 forRequestID:(NSString*)requestID;
702 - (void) GDServiceDidStartSendingTo:(NSString*)application withFilename:(NSString*)filename correspondingToRequestID:(NSString*)requestID;
733 - (void) GDServiceDidFinishSendingTo:(NSString*)application withAttachments:(NSArray<NSString *> *)attachments withParams:(
id)params correspondingToRequestID:(NSString*)requestID;
762 - (void) GDServiceWillStartReceivingFrom:(NSString*)application
763 numberOfAttachments:(NSUInteger)attachments
764 forRequestID:(NSString*)requestID;
797 - (void) GDServiceWillStartReceivingFrom:(NSString*)application
798 attachmentPath:(NSString*)path
799 fileSize:(NSNumber*)size
800 forRequestID:(NSString*)requestID;
873 + (BOOL) replyTo:(nullable NSString*)application
874 withParams:(nullable
id)params
876 withAttachments:(nullable NSArray<NSString *> *)attachments
877 requestID:(NSString*)requestID
878 error:(NSError**)error;
909 + (BOOL) bringToFront:(nonnull NSString *)application completion:(
void(^)(BOOL) )completion error:(NSError**)error;
932 + (BOOL) bringToFront:(nonnull NSString *)application error:(NSError**)error DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION;
951 @property (nullable, weak, getter = getDelegate, setter = setDelegate:) id<GDServiceDelegate>
delegate;
955 NS_ASSUME_NONNULL_END
@ GDEPreferMeInForeground
The current application is to be in the foreground.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:154
const NSInteger GDServicesErrorInvalidParams
The application attempted to utilize an unsupported type as a service parameter, either in a service ...
const NSInteger GDServicesErrorGeneral
A general AppKinetics error occurred.
const NSInteger GDServicesErrorEnterpriseUserNotMatch
The application attempted to establish a connection to the application that was activated for a diffe...
id< GDServiceDelegate > delegate
Handler that implements the services provided by the application.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:951
NSString *const GDServicesErrorDomain
Error domain for AppKinetics errors.
AppKinetics service provider.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:813
@ GDENoForegroundPreference
There is no preference for which application is in foreground.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:160
AppKinetics service provider implementation.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:594
NSString *const GDFrontRequestMethod
Method name for the Front Request API.
const NSInteger GDServicesVersionDisabled
The service consumer sent a request that specified a service version that has been disabled in the se...
const NSInteger GDServicesErrorServiceNotFound
The service consumer sent a request that specified a service that isn't supported by the service prov...
const NSInteger GDServicesErrorNotAllowed
The service consumer sent a request to an application that couldn't be unlocked.
const NSInteger GDServicesErrorProcessSuspended
Application's process has been suspended by system.
const NSInteger GDServicesErrorServiceVersionNotFound
The service consumer sent a request that specified a service version that isn't supported by the serv...
const NSInteger GDServicesErrorApplicationNotFound
The service consumer sent a request to an application that couldn't be found on the device or compute...
NSString *const GDFrontRequestService
BlackBerry Dynamics service ID for Front Request.
const NSInteger GDServicesErrorMethodNotFound
The service consumer sent a request that specified a method that isn't supported by the service provi...
Handler for AppKinetics consumer events.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:189
const NSInteger GDServicesErrorCertificateNotFound
The application attempted to establish a connection but couldn't find a valid X509 certificate.
GDTForegroundOption
Constants for specifying foreground execution preference.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:151
@ GDEPreferPeerInForeground
The other application is to be in the foreground.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:157
id< GDServiceClientDelegate > delegate
Handler for responses to service requests.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:584
const NSInteger GDServicesMethodDisabled
The service consumer sent a request that specified a method that has been disabled in the service pro...
AppKinetics service consumer.
Definition: platform/apple/ios/build/BlackBerryDynamics.framework/Headers/GDServices.h:390
const NSInteger GDServicesServiceDisabled
The service consumer sent a request that specified a service that has been disabled in the service pr...