docs.unity3d.com
    Show / Hide Table of Contents

    Class FeatureGating

    Provides methods to check if a user is allowed to access premium features or notify the system when a premium feature is being used

    Inheritance
    Object
    FeatureGating
    Namespace: Unity.PSN.PS5.PremiumFeatures
    Syntax
    public class FeatureGating

    Methods

    Schedule(AsyncOp)

    Schedule an AsyncOp by adding it to the internal FeatureGating queue

    Declaration
    public static void Schedule(AsyncOp op)
    Parameters
    Type Name Description
    AsyncOp op

    The operation to schedule

    Events

    OnPremiumNotification

    Event called when a premium notification occurs. To start notifications call FeatureGating.StartPremiumEventCallbackRequest. To stop notifications call FeatureGating.StopPremiumEventCallbackRequest.

    Declaration
    public static event FeatureGating.PremiumNotification OnPremiumNotification
    Event Type
    Type Description
    FeatureGating.PremiumNotification
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 25 September 2020