Class UrlRedirectUtils
Utilities for url redirection.
Inherited Members
Namespace: Unity.Cloud.AppLinking
Assembly: solution.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 |