Interface IFunctionalitySubscriber<TProvider>
Grants implementors the ability to access functionality provided by a TProvider. Methods on the provider object
are exposed via extension method, so that they can be treated like instance methods. For example, a
provider with a method Foo can be called within an implementing class as this.Foo().
Code generation will fill in a TProvider provider
property which is used within these extension methods to
call the corresponding method on the provider.
Namespace: Unity.XRTools.ModuleLoader
Syntax
public interface IFunctionalitySubscriber<TProvider> : IFunctionalitySubscriber where TProvider : IFunctionalityProvider
Type Parameters
Name | Description |
---|---|
TProvider | The type which will provide functionality |
Properties
provider
The functionality provider
Declaration
TProvider provider { get; set; }
Property Value
Type | Description |
---|---|
TProvider |