blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDUtility.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2019 BlackBerry Limited. All rights reserved.
00003  *
00004  */
00005 
00006 #pragma once
00007 
00008 #import <Foundation/Foundation.h>
00009 #import "GDPortability.h"
00010 
00011 
00012 GD_NS_ASSUME_NONNULL_BEGIN
00013 
00026 @protocol GDAuthTokenDelegate
00027 
00042 - (void)onGDAuthTokenSuccess:(NSString*)gdAuthToken;
00043 
00067 - (void)onGDAuthTokenFailure:(NSError*) authTokenError;
00068 
00069 @end
00187 @interface GDUtility : NSObject
00188 
00222 - (void)getGDAuthToken: (NSString*) challenge serverName:(GD_NSNULLABLE NSString*) serverName;
00223 
00236 - (NSString *)getDynamicsSharedUserIDWithError:(NSError **)error;
00237 
00248 @property (GD_NSNULLABLE_PROP weak, getter = getGDAuthDelegate, setter = setGDAuthDelegate:) id<GDAuthTokenDelegate> gdAuthDelegate;
00249 
00250 
00251 @end
00252 
00264 extern NSString* const GDAuthTokenDomain;
00265 
00266 
00267 typedef NS_ENUM(NSInteger, GDAuthTokenError)
00268 {
00272     GDAuthTokenErrNotSupported = -2,
00273     
00279     GDAuthTokenErrRetry         = -1,
00280     
00281 };
00282 
00286 GD_NS_ASSUME_NONNULL_END