Class ServiceValidationModel
Represents the isolated implementation for validating service installation and system permissions.
Implements
Namespace: Holoride.ElasticSDK
Assembly: Holoride.ElasticSDK.StateReceivers.dll
Syntax
public sealed class ServiceValidationModel : IServiceValidation
Properties
ArePermissionsGranted
Gets a value indicating whether all required permissions to communicate with the service have been granted.
Declaration
[CreateProperty]
public bool ArePermissionsGranted { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsHolorideServiceInstalled
Gets a value indicating whether the holoride service is installed on the device.
Declaration
[CreateProperty]
public bool IsHolorideServiceInstalled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsServiceAvailable
Gets a value indicating whether the holoride service is available.
Declaration
[CreateProperty]
public bool IsServiceAvailable { get; }
Property Value
| Type | Description |
|---|---|
| bool |
IsServiceConnected
Gets a value indicating whether the holoride service is connected.
Declaration
[CreateProperty]
public bool IsServiceConnected { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
Dispose()
Declaration
public void Dispose()
StartValidationAndConnection()
Starts the validation and connection process.
Declaration
public void StartValidationAndConnection()
StopValidationAndConnection()
Stops the validation and connection process.
Declaration
public void StopValidationAndConnection()
ValidateAndConnectAsync(CancellationToken)
Orchestrates checking/requesting installation and checking/requesting permissions.
Declaration
public UniTask ValidateAndConnectAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Cysharp.Threading.Tasks.UniTask |
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type | Description |
|---|---|
| PropertyChangedEventHandler |