GoogleMobileAds.Api.ApplicationPreferences

Interface for accessing and modifying application preference data (SharedPreferences on Android and NSUserDefaults on iOS).

Summary

Values saved by this interface are saved in an application scope, and are shared by SDKs included in this application.

Public static functions

GetInt(string key)
int
Read an int value from the application preferences.
GetString(string key)
string
Read a string value from the application preferences.
SetInt(string key, int value)
void
Set an int value in the application preferences.
SetString(string key, string value)
void
Set a string value in the application preferences.

Public static functions

GetInt

int GetInt(
  string key
)

Read an int value from the application preferences.

Details
Parameters
key
The key with which to retrieve the value.

GetString

string GetString(
  string key
)

Read a string value from the application preferences.

Details
Parameters
key
The key with which to retrieve the value.

SetInt

void SetInt(
  string key,
  int value
)

Set an int value in the application preferences.

Details
Parameters
key
The key with which to associate the value.
value
The value that needs to be associated to the key.

SetString

void SetString(
  string key,
  string value
)

Set a string value in the application preferences.

Details
Parameters
key
The key with which to associate the value.
value
The value that needs to be associated to the key.