docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class UrlRedirectUtils

    Utilities for url redirection.

    Inheritance
    object
    UrlRedirectUtils
    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 static class UrlRedirectUtils

    Methods

    TryInterceptRedirectionUrl(Uri, List<string>, out UrlRedirectResult)

    Tries to intercept the redirection url for specific query arguments.

    Declaration
    public static bool TryInterceptRedirectionUrl(Uri uri, List<string> awaitedQueryArguments, out UrlRedirectResult urlRedirectResult)
    Parameters
    Type Name Description
    Uri uri

    The uri to intercept.

    List<string> awaitedQueryArguments

    The awaited query arguemtns.

    UrlRedirectResult urlRedirectResult

    The redirection result.

    Returns
    Type Description
    bool

    Whether the interception succeeded.

    UrlHasAwaitedQueryArguments(Dictionary<string, string>, List<string>)

    Returns whether the url has all the awaited query arguments.

    Declaration
    public static bool UrlHasAwaitedQueryArguments(Dictionary<string, string> queryArgumentDictionary, List<string> awaitedQueryArguments)
    Parameters
    Type Name Description
    Dictionary<string, string> queryArgumentDictionary

    The URL's query arguments.

    List<string> awaitedQueryArguments

    The query arguments being awaited.

    Returns
    Type Description
    bool

    Whether the URL has the awaited arguments.

    ValidateUrlArgument(string, out Uri)

    Verifies if the url is valid.

    Declaration
    public static void ValidateUrlArgument(string url, out Uri uri)
    Parameters
    Type Name Description
    string url

    The url to validate.

    Uri uri

    The resulting Uri.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the url is empty, null, or invalid.

    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)