SetMeteredKey

Metered.SetMeteredKey method

设置计量公钥和私钥。 如果购买计量许可证,在启动应用程序时,应该调用此API,正常情况下,这就足够了。 但是,如果总是无法上传消费数据,超过24小时,License会被设置为评估状态, 为了避免这种情况,你应该定期检查License状态,如果是评估状态,再次调用这个API。

public void SetMeteredKey(string publicKey, string privateKey)
范围类型描述
publicKeyString公钥
privateKeyString私钥

也可以看看