删除数据
删除玩家已注册的数据。
调用信息
public void Delete (string storageKey, PlayNANOODelegate callback) {}
调用详细信息
| 参数 | 说明 | 类型 |
|---|---|---|
| storageKey | 数据键 | string |
| callback | 通信结果 | PlayNANOODelegate |
源代码
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
string storageKey = "STORAGE_KEY";
plugin.Storage.Delete(storageKey, (status, message, jsonString, dictionary) =>
{
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}
通信结果
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "success"
}
通信结果详细信息
| 数据键 | 说明 | 类型 |
|---|---|---|
| Status | 处理结果 | string |