Class ChannelUrlRedirectionInterceptor
An IUrlRedirectionInterceptor using the service channel to intercept redirection response.
Inherited Members
Namespace: Unity.Cloud.AppLinking
Assembly: solution.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 |
|
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> |