Description
ILckCore defines the contract for the core services of LCK.
It provides APIs for:
- User authentication via short login codes
- Checking whether the user has an active subscription
- Validating whether the user has configured their streaming setup
[InjectLck] ILckCore _lckCore and used to define an alternative UX for the login and configuration processes compared to the default offered by the tablets.
Custom implementations of
ILckCore are not recommended.Usage
Example: Start Login Flow
Example: Check Subscription
References
Methods
| Method | Returns | Description |
|---|---|---|
| HasUserConfiguredStreaming() | Task<Result<bool>> | Checks if the logged-in user has configured streaming. Returns true if configured. |
| IsUserSubscribed() | Task<Result<bool>> | Checks if the logged-in user has an active subscription. Returns true if subscribed. |
| StartLoginAttemptAsync() | Task<Result<string>> | Starts the login process and returns a short login code to display to the user. |
| CheckLoginCompletedAsync() | Task<Result<bool>> | Checks if a previously started login attempt has been completed by the user. |