Inherits from NSObject
Declared in Everlive.h

Overview

An Everlive entry point framework object that bootstraps the local representation of the Everlive cloud based on appllicaiton key either from info.plist file or the key set by user explicitly.

Tasks

Class Methods

handlePush:

Handles push notification message sent from Everlive application.

+ (void)handlePush:(NSDictionary *)notification

Parameters

notification

The dictionary contains the notification details.

Declared In

Everlive.h

setApplicationKey:

Sets the application key for your applicaiton.

+ (void)setApplicationKey:(NSString *)appKey

Parameters

appKey

The application key for your Everlive application.

Declared In

Everlive.h

sharedInstance

Returns the shared instance of your application.

+ (id)sharedInstance

Declared In

Everlive.h

Instance Methods

registerDevice:

Registers the device in Everlive cloud to receive push notification.

- (void)registerDevice:(EVObjectResultBlock)block

Parameters

block

The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)

Declared In

Everlive.h

registerDeviceWithParameters:block:

Registers the device in Everlive cloud to receive push notification

- (void)registerDeviceWithParameters:(NSDictionary *)parameters block:(EVObjectResultBlock)block

Parameters

parameters

The additional parameters can be used to send notiticaiton to a device based on filter values.

block

The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)

Declared In

Everlive.h

removeDevice:

Removes the device from Everlive cloud.

- (void)removeDevice:(EVObjectResultBlock)block

Parameters

block

The block to execute. The block should have the following argument signature: (BOOL success, NSError *error)

Declared In

Everlive.h