Inherits from NSObject
Declared in NetmeraClient.h
NetmeraClient.m

Overview

NetmeraClient class contains the configuration methods.

Tasks

Properties

cacheType

Types of the Cache to use while searching.

@property (nonatomic) enum CacheType cacheType

Discussion

Types of the Cache to use while searching.

Warning: enum CacheType options.

DEFAULT_NO_CACHE, Queries does not add and retrieve results to cache.

FROM_CACHE, Queries retrieve results from the cache.

FROM_NETWORK, Queries retrieve results from the network and add results into the cache.

FIRST_CACHE_THEN_NETWORK, Queries first tries to get results from cache, if it cannot find then tries to get from network.

FIRST_NETWORK_THEN_CACHE, Queries first tries to get results from network, if it cannot find then tries to get from cache.

Declared In

NetmeraClient.h

Class Methods

deleteCacheResults

Deletes everything from the cache

+ (void)deleteCacheResults

Discussion

Deletes everything from the cache

Declared In

NetmeraClient.h

initWithApiKey:

Authenticates user and application. It is recommended to call this method at the beginning of the program.

+ (void)initWithApiKey:(NSString *)apiKey

Parameters

apiKey

key that given from Netmera account of your project

Discussion

Authenticates user and application. It is recommended to call this method at the beginning of the program.

Declared In

NetmeraClient.h

setCacheType:

Set cache method of netmera

+ (void)setCacheType:(enum CacheType)cacheType

Parameters

cacheType

Type of the cache method

Discussion

Set cache method of netmera

Warning: enum CacheType options.

DEFAULT_NO_CACHE, Queries does not add and retrieve results to cache.

FROM_CACHE, Queries retrieve results from the cache.

FROM_NETWORK, Queries retrieve results from the network and add results into the cache.

FIRST_CACHE_THEN_NETWORK, Queries first tries to get results from cache, if it cannot find then tries to get from network.

FIRST_NETWORK_THEN_CACHE, Queries first tries to get results from network, if it cannot find then tries to get from cache.

Declared In

NetmeraClient.h

sharedInstance

Singleton object for NetmeraClient class.

+ (id)sharedInstance

Discussion

Singleton object for NetmeraClient class.

Declared In

NetmeraClient.h