Inherits from NSObject
Declared in Netmera.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.

Queries does not add and retrieve results to cache.

DEFAULT_NO_CACHE,

Queries retrieve results from the cache.

FROM_CACHE,

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

FROM_NETWORK,

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

FIRST_CACHE_THEN_NETWORK,

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

FIRST_NETWORK_THEN_CACHE

Declared In

Netmera.h

Class Methods

deleteCacheResults

Deletes everything from the cache

+ (void)deleteCacheResults

Discussion

Deletes everything from the cache

Declared In

Netmera.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

Netmera.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.

Queries does not add and retrieve results to cache.

DEFAULT_NO_CACHE,

Queries retrieve results from the cache.

FROM_CACHE,

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

FROM_NETWORK,

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

FIRST_CACHE_THEN_NETWORK,

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

FIRST_NETWORK_THEN_CACHE

Declared In

Netmera.h