HIVE SDK for Unity3D

Classes | Functions
DataStore

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information. More...

Classes

class  hive.DataStore
 Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information. More...
 

Functions

static void hive.DataStore.set (string key, string value, onSet listener)
 Add Data
More...
 
static void hive.DataStore.set (Dictionary< string, string > data, onSet listener)
 Add Data
More...
 
static void hive.DataStore.get (string key, onGet listener)
 Get one of my data
More...
 
static void hive.DataStore.getMyData (onMyData listener)
 Get all my data
More...
 
static void hive.DataStore.getUsersData (string key, onUsersData listener)
 Get all data using key
More...
 

Detailed Description

Hive Data Store uses NoSQL Cloud Database to synchronize and store the data for use on the client,
such as the components of the game and the settings information.



Function Documentation

◆ get()

static void hive.DataStore.get ( string  key,
onGet  listener 
)
static

Get one of my data

Since
4.15.8

◆ getMyData()

static void hive.DataStore.getMyData ( onMyData  listener)
static

Get all my data

Since
4.15.8

◆ getUsersData()

static void hive.DataStore.getUsersData ( string  key,
onUsersData  listener 
)
static

Get all data using key

Since
4.15.8

◆ set() [1/2]

static void hive.DataStore.set ( Dictionary< string, string >  data,
onSet  listener 
)
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8

◆ set() [2/2]

static void hive.DataStore.set ( string  key,
string  value,
onSet  listener 
)
static

Add Data

You can add data to the Data Store in one pair of a key-value or multiple pairs of map format at once.
After a request, true or false is returned.

  • IMPORTANT : The key-value needs to be set up in a one-dimensional JSON string that includes a simple string or backslash().
Since
4.15.8
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy