Metered.SetMeteredKey

Metered.SetMeteredKey method

设置计量的公钥和私钥。如果您购买了计量许可证,在启动应用程序时应调用此 API,通常这就足够了。然而,如果始终无法上传消费数据且超过 24 小时,许可证将被设置为评估状态。为避免这种情况,您应定期检查许可证状态,如果是评估状态,请再次调用此 API。

public void SetMeteredKey(string publicKey, string privateKey)
参数类型描述
publicKey字符串公钥
privateKey字符串私钥

另请参见