CalStoreSupportedLanguagesRequest Class Reference

Inherits from NSObject
Declared in CalStoreSupportedLanguagesRequest.h

Overview

Requests the supported languages for the Calendar Store.

Creating Requests

+ request

Creates a new request for all supported countries for the current locale.

+ (instancetype)request

Return Value

CalStoreSupportedLanguagesRequest that will request all supported languages

Discussion

Note: this only creates a request, use fetchWithCompletionHandler: to start requesting the page.

Declared In

CalStoreSupportedLanguagesRequest.h

+ requestForLocale:

Creates a new request for all supported countries for a given locale.

+ (instancetype)requestForLocale:(NSString *)locale

Parameters

locale

the locale for which the languages should be given. Used to localize the name

Return Value

CalStoreSupportedLanguagesRequest that will request all supported languages

Discussion

Note: this only creates a request, use fetchWithCompletionHandler: to start requesting the page.

Declared In

CalStoreSupportedLanguagesRequest.h

Authorization

  authorizationToken

The AuthorizationToken being used for this request. Defaults to [[CalStoreController sharedController]](../Classes/CalStoreController.html#//api/name/sharedController).authorizationToken.

@property (nonatomic, strong) NSString *authorizationToken

Declared In

CalStoreSupportedLanguagesRequest.h

Fetching Languages

  fetching

YES iff this object is busy fetching languages.

@property (nonatomic, getter=isFetching, readonly) BOOL fetching

Declared In

CalStoreSupportedLanguagesRequest.h

– cancel

Cancels an ongoing request

- (void)cancel

Declared In

CalStoreSupportedLanguagesRequest.h

– fetchWithCompletionHandler:

Fetches all supported languages asynchronously.

- (void)fetchWithCompletionHandler:(CalStoreSupportedLanguagesRequestCompletionHandler)completionHandler

Parameters

completionHandler

block that will be invoked on the main queue if the fetch operation finishes. Check the error parameter of the block to see if the request succeeded. Languages will be returned as an array of CalStoreLanguage objects.

Declared In

CalStoreSupportedLanguagesRequest.h