docs.unity3d.com
    Show / Hide Table of Contents

    Interface IUrlRedirectionInterceptor

    This interface abstracts url redirection interception and validation of awaited query arguments.

    Inherited Members
    IDisposable.Dispose()
    Namespace: Unity.Cloud.Common
    Syntax
    public interface IUrlRedirectionInterceptor : IDisposable

    Properties

    AwaitedQueryArguments

    The list of query arguments to validate when receiving the awaited callback url.

    Declaration
    List<string> AwaitedQueryArguments { get; }
    Property Value
    Type Description
    List<String>

    Methods

    AwaitRedirectAsync(List<String>)

    Returns a Task awaiting a UrlRedirectResult.

    Declaration
    Task<UrlRedirectResult> AwaitRedirectAsync(List<string> awaitedQueryArguments = null)
    Parameters
    Type Name Description
    List<String> awaitedQueryArguments

    The list of query arguments to validate when receiving the awaited callback url.

    Returns
    Type Description
    Task<UrlRedirectResult>

    A Task that results in a UrlRedirectResult when completed.

    Exceptions
    Type Condition
    TimeoutException

    Thrown if no redirect occured within the allotted time limit.

    GetRedirectionResult()

    Gets a nullable UrlRedirectResult value.

    Declaration
    UrlRedirectResult? GetRedirectionResult()
    Returns
    Type Description
    Nullable<UrlRedirectResult>

    A nullable UrlRedirectResult value.

    GetRedirectProcessId()

    Gets a string representation of the current process id or main window id.

    Declaration
    string GetRedirectProcessId()
    Returns
    Type Description
    String

    A string representation of the current process id or main window id.

    InterceptAwaitedUrl(String, List<String>)

    Call this method with any incoming activation url and a list of awaited query arguments required for interception.

    Declaration
    void InterceptAwaitedUrl(string url, List<string> awaitedQueryArguments = null)
    Parameters
    Type Name Description
    String url

    The url received.

    List<String> awaitedQueryArguments

    The list of query arguments required to validate url.

    Exceptions
    Type Condition
    ArgumentException
    • Thrown when url is null or empty.
    • Thrown when url not a valid Uri.

    Events

    DeepLinkForwarded

    Triggered when an intercepted uri can be forwarded to a deep link processor.

    Declaration
    event Action<Uri> DeepLinkForwarded
    Event Type
    Type Description
    Action<Uri>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023