mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-27 04:03:16 +03:00
22 lines
713 B
Dart
Executable File
22 lines
713 B
Dart
Executable File
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
|
import 'package:yubico_authenticator/management/models.dart';
|
|
|
|
import '../app/models.dart';
|
|
import '../core/state.dart';
|
|
|
|
final managementStateProvider = StateNotifierProvider.autoDispose
|
|
.family<ManagementStateNotifier, AsyncValue<DeviceInfo>, DevicePath>(
|
|
(ref, devicePath) => throw UnimplementedError(),
|
|
);
|
|
|
|
abstract class ManagementStateNotifier
|
|
extends ApplicationStateNotifier<DeviceInfo> {
|
|
Future<void> writeConfig(DeviceConfig config,
|
|
{String currentLockCode = '',
|
|
String newLockCode = '',
|
|
bool reboot = false});
|
|
|
|
Future<void> setMode(int mode,
|
|
{int challengeResponseTimeout = 0, int autoEjectTimeout = 0});
|
|
}
|