Class DeepLinkingService
Service that allows deep links to access the application Use DeepLinkAttribute to mark methods as targets of deep links. Moreover, add classes using DeepLinkAttribute to the list of listeners in this service using AddDeepLinkListener(Object).
Implements
Namespace: i5.Toolkit.Core.DeepLinkAPI
Assembly: cs.temp.dll.dll
Syntax
public class DeepLinkingService : IDeepLinkingService, IService
Properties
ApplicationAPI
Reference to an application adapter.
In production, this is initialized with Unity's
Declaration
public IApplication ApplicationAPI { get; set; }
Property Value
Type | Description |
---|---|
IApplication |
RegisteredListenersCount
The number of objects that will be searched for deep link targets
Declaration
public int RegisteredListenersCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
AddDeepLinkListener(Object)
Adds the given object instance to the list of objects that are scanned for deep link targets Add every class that has a method with the DeepLinkAttribute so that it can be found.
Declaration
public void AddDeepLinkListener(object listener)
Parameters
Type | Name | Description |
---|---|---|
Object | listener | The object to add the the list of listeners |
Cleanup()
Cleans up the service
Declaration
public void Cleanup()
Initialize(IServiceManager)
Initializes the service. Subscribes to the deep link event and checks if a deep link already occurred.
Declaration
public void Initialize(IServiceManager owner)
Parameters
Type | Name | Description |
---|---|---|
IServiceManager | owner | The service manager that owns this service |
RemoveDeepLinkListener(Object)
Removes the instance from the list of listeners that will be scanned
Declaration
public void RemoveDeepLinkListener(object listener)
Parameters
Type | Name | Description |
---|---|---|
Object | listener | The object instance to remove from the listener list |