-
- BlackBerry Dynamics
- Runtime library for iOS applications
- 11.0.1.151
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
274 - (void) GDServiceClientDidReceiveFrom:(NSString*)application
275 withParams:(
id)params
276 withAttachments:(NSArray<NSString *> *)attachments
277 correspondingToRequestID:(NSString*)requestID;
306 - (void) GDServiceClientDidStartSendingTo:(NSString*)application withFilename:(NSString*)filename correspondingToRequestID:(NSString*)requestID;
337 - (void) GDServiceClientDidFinishSendingTo:(NSString*)application withAttachments:(NSArray<NSString *> *)attachments withParams:(
id)params correspondingToRequestID:(NSString*)requestID;
367 - (void) GDServiceClientWillStartReceivingFrom:(NSString*)application
368 numberOfAttachments:(NSUInteger)attachments
369 forRequestID:(NSString*)requestID;
403 - (void) GDServiceClientWillStartReceivingFrom:(NSString*)application
404 attachmentPath:(NSString*)path
405 fileSize:(NSNumber*)size
406 forRequestID:(NSString*)requestID;
520 + (BOOL) sendTo:(NSString*)application
521 withService:(NSString*)service
522 withVersion:(NSString*)version
523 withMethod:(NSString*)method
524 withParams:(nullable
id)params
525 withAttachments:(nullable NSArray<NSString *> *)attachments
527 requestID:(NSString * _Nullable * _Nullable)requestID
528 error:(NSError**)error;
565 + (BOOL) cancelRequest:(NSString*)requestID toApplication:(NSString*)application;
597 + (BOOL) bringToFront:(nonnull NSString*)application completion:(
void(^)(BOOL) )completion error:(NSError**)error;
621 + (BOOL) bringToFront:(NSString*)application error:(NSError**)error DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION;
640 @property (nullable, weak, getter = getDelegate, setter = setDelegate:) id<GDServiceClientDelegate>
delegate;
754 - (void) GDServiceDidReceiveFrom:(NSString*)application
755 forService:(NSString*)service
756 withVersion:(NSString*)version
757 forMethod:(NSString*)method
758 withParams:(
id)params
759 withAttachments:(NSArray<NSString *> *)attachments
760 forRequestID:(NSString*)requestID;
790 - (void) GDServiceDidStartSendingTo:(NSString*)application withFilename:(NSString*)filename correspondingToRequestID:(NSString*)requestID;
821 - (void) GDServiceDidFinishSendingTo:(NSString*)application withAttachments:(NSArray<NSString *> *)attachments withParams:(
id)params correspondingToRequestID:(NSString*)requestID;
850 - (void) GDServiceWillStartReceivingFrom:(NSString*)application
851 numberOfAttachments:(NSUInteger)attachments
852 forRequestID:(NSString*)requestID;
885 - (void) GDServiceWillStartReceivingFrom:(NSString*)application
886 attachmentPath:(NSString*)path
887 fileSize:(NSNumber*)size
888 forRequestID:(NSString*)requestID;
1357 + (BOOL) replyTo:(nullable NSString*)application
1358 withParams:(nullable
id)params
1360 withAttachments:(nullable NSArray<NSString *> *)attachments
1361 requestID:(NSString*)requestID
1362 error:(NSError**)error;
1393 + (BOOL) bringToFront:(nonnull NSString *)application completion:(
void(^)(BOOL) )completion error:(NSError**)error;
1416 + (BOOL) bringToFront:(nonnull NSString *)application error:(NSError**)error DEPRECATE_BRINGTOFRONTWITHOUTCOMPLETION;
1435 @property (nullable, weak, getter = getDelegate, setter = setDelegate:) id<GDServiceDelegate>
delegate;
1439 NS_ASSUME_NONNULL_END
@ GDEPreferMeInForeground
The current application is to be in the foreground.
Definition: platform/apple/ios/build/GD.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/GD.framework/Headers/GDServices.h:1435
NSString *const GDServicesErrorDomain
Error domain for AppKinetics errors.
AppKinetics service provider.
Definition: platform/apple/ios/build/GD.framework/Headers/GDServices.h:1297
@ GDENoForegroundPreference
There is no preference for which application is in foreground.
Definition: platform/apple/ios/build/GD.framework/Headers/GDServices.h:160
AppKinetics service provider implementation.
Definition: platform/apple/ios/build/GD.framework/Headers/GDServices.h:682
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/GD.framework/Headers/GDServices.h:216
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/GD.framework/Headers/GDServices.h:151
@ GDEPreferPeerInForeground
The other application is to be in the foreground.
Definition: platform/apple/ios/build/GD.framework/Headers/GDServices.h:157
id< GDServiceClientDelegate > delegate
Handler for responses to service requests.
Definition: platform/apple/ios/build/GD.framework/Headers/GDServices.h:640
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/GD.framework/Headers/GDServices.h:446
const NSInteger GDServicesServiceDisabled
The service consumer sent a request that specified a service that has been disabled in the service pr...