docs.unity.cn
    Show / Hide Table of Contents

    Interface IRewardDataLayer

    Contract for objects providing data to the IRewardManager.

    Namespace: UnityEngine.GameFoundation
    Syntax
    public interface IRewardDataLayer

    Methods

    Claim(String, String, Completer<TransactionExchangeData>)

    Grants the Payout to the player if the reward item key is currently valid.

    Declaration
    void Claim(string rewardKey, string rewardItemKey, Completer<TransactionExchangeData> completer)
    Parameters
    Type Name Description
    String rewardKey

    The key of the reward that contains the reward item to claim.

    String rewardItemKey

    The key of the reward item to claim.

    Completer<TransactionExchangeData> completer

    Maintains a reference to the original asynchronous promise.

    GetData()

    Get the serializable data which is managed by IRewardManager.

    Declaration
    RewardManagerData GetData()
    Returns
    Type Description
    RewardManagerData

    The player's data for the IRewardManager.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021