docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ChannelUrlRedirectionInterceptor

    An IUrlRedirectionInterceptor using the service channel to intercept redirection response.

    Inheritance
    object
    ChannelUrlRedirectionInterceptor
    Implements
    IUrlRedirectionInterceptor
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Cloud.AppLinking
    Assembly: Unity.Cloud.AppLinking.dll
    Syntax
    public class ChannelUrlRedirectionInterceptor : IUrlRedirectionInterceptor, IDisposable

    Constructors

    ChannelUrlRedirectionInterceptor(IUrlRedirectAwaiter, string)

    Creates an IUrlRedirectionInterceptor using the service channel to intercept redirection response.

    Declaration
    public ChannelUrlRedirectionInterceptor(IUrlRedirectAwaiter urlRedirectAwaiter, string hostDomain = null)
    Parameters
    Type Name Description
    IUrlRedirectAwaiter urlRedirectAwaiter
    string hostDomain

    Properties

    AwaitedQueryArguments

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

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

    Methods

    AwaitRedirectAsync(List<string>)

    Returns a Task awaiting a UrlRedirectResult.

    Declaration
    public 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.

    Dispose()

    Performs tasks related to disposing of associated resources.

    Declaration
    public void Dispose()

    Dispose(bool)

    Performs tasks related to disposing of associated resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    Whether we want to dispose of associated resources.

    GetRedirectProcessId()

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

    Declaration
    public ProcessId GetRedirectProcessId()
    Returns
    Type Description
    ProcessId

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

    GetRedirectionResult()

    Gets a nullable UrlRedirectResult value.

    Declaration
    public UrlRedirectResult? GetRedirectionResult()
    Returns
    Type Description
    UrlRedirectResult?

    A nullable UrlRedirectResult value.

    InterceptAwaitedUrl(string, List<string>)

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

    Declaration
    public 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
    public event Action<Uri> DeepLinkForwarded
    Event Type
    Type Description
    Action<Uri>

    Implements

    IUrlRedirectionInterceptor
    IDisposable
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)