Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

 

 

#pragma mark - Alias
/**
Set an alias to be identifies with a device.
@brief Method sets an alias to identify a device.
@code
[[Appoxee shared] setDeviceAlias:@"Alias" withCompletionHandler:^(NSError *appoxeeError, id data) {

if (!appoxeeError) {

// Alias was set.
}
}];
@endcode
@param alias An NSString object representing an alias.
@param handler Code Block to be executed when method completes with an NSError object and data as arguments.
*/
- (void)setDeviceAlias:(nullable NSString *)alias withCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
/**
Remove an alias from a device.
@brief Method removes an alias from a device.
@code
[[Appoxee shared] removeDeviceAliasWithCompletionHandler:^(NSError *appoxeeError, id data) {

if (!appoxeeError) {

// Alias was removed.
}
}];
@endcode
An NSString object representing an alias.
@param handler Code Block to be executed when method completes with an NSError object and data as arguments.
*/
- (void)removeDeviceAliasWithCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
/**
Get an alias for a device.
@brief Method gets the alias for a device.
@code
[[Appoxee shared] getDeviceAliasWithCompletionHandler:^(NSError *appoxeeError, id data) {

if (!appoxeeError && [data isKindOfClass:[NSString class]]) {

NSString *deviceAlias = (NSString *)data;
}
}];
@endcode
@param handler Code Block to be executed when method completes with an NSError object and data as arguments.
*/
- (void)getDeviceAliasWithCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
/**
Clear cached value of an alias.
@brief Method clears cached value of an alias.
@code
[[Appoxee shared] clearAliasCacheWithCompletionHandler:^(NSError *appoxeeError, id data) {

if (!appoxeeError) {

// Alias cache was cleared.
}
}];
@endcode
@param handler Code Block to be executed when method completes with an NSError object and data as arguments.
*/
- (void)clearAliasCacheWithCompletionHandler:(nullable AppoxeeCompletionHandler)handler;
#pragma mark - Device Tags
/**
  • No labels