GPGEvent Class Reference


Overview

An object representing a game event.

Public Member Functions

(void) - increment
 Increments the event by 1.
(void) - incrementBy:
 Increments the event by steps.
(void) - incrementWithCompletionHandler:
 Increments the event by 1 and calls the completion handler when done.
(void) - incrementBy:completionHandler:
 Increments the event by steps and calls the completion handler when done.

Static Public Member Functions

(void) + allEventsWithCompletionHandler:
 Fetches all events for the game from the server (or cache if present).
(void) + eventForId:completionHandler:
 Fetches the event for the given identifier from the server (or cache if present).

Properties

uint64_t count
 The current value of the event.
NSString * description
 The description of the event.
NSString * eventId
 The unique identifier of the event.
NSString * name
 The name of the event.
NSURL * imageUrl
 The URL of the image resource.
BOOL visible
 Whether the event should be visible to the user or not.

Member Function Documentation

+ (void) allEventsWithCompletionHandler: (GPGEventListBlock)  completionHandler

Fetches all events for the game from the server (or cache if present).

+ (void) eventForId: (NSString *)  eventId
completionHandler: (GPGEventOperationBlock)  completionHandler 

Fetches the event for the given identifier from the server (or cache if present).

- (void) increment

Increments the event by 1.

- (void) incrementBy: (uint64_t)  steps

Increments the event by steps.

Parameters:
stepsthe number to increment the event by.
- (void) incrementWithCompletionHandler: (GPGEventOperationBlock)  completionHandler

Increments the event by 1 and calls the completion handler when done.

Parameters:
completionHandlera callback that is executed upon completion.
- (void) incrementBy: (uint64_t)  steps
completionHandler: (GPGEventOperationBlock)  completionHandler 

Increments the event by steps and calls the completion handler when done.

Parameters:
stepsthe number to increment the event by.
completionHandlera callback that is executed upon completion.

Property Documentation

- (uint64_t) count [read, assign]

The current value of the event.

- (NSString*) description [read, copy]

The description of the event.

- (NSString*) eventId [read, copy]

The unique identifier of the event.

- (NSString*) name [read, copy]

The name of the event.

- (NSURL*) imageUrl [read, copy]

The URL of the image resource.

- (BOOL) visible [read, assign]

Whether the event should be visible to the user or not.

If not visible by default, this automatically becomes true once the event is incremented.

Оставить отзыв о...

Текущей странице
Play Games Services for iOS
Play Games Services for iOS