NAppUpdateController constructor
NAppUpdateController({
- required NdkFlutter ndkFlutter,
- required SoftwareAppRef app,
- required UpdateInstaller installer,
- String? currentVersion,
- Uri? externalUpdateUrl,
- bool? installationEnabled,
- SoftwareAppRef? zapTargetApp,
- String channel = 'main',
- List<
String> relays = const [], - Duration queryTimeout = const Duration(seconds: 5),
- Duration engagementQueryTimeout = const Duration(seconds: 4),
- Duration engagementMetadataTimeout = const Duration(seconds: 3),
Implementation
NAppUpdateController({
required this.ndkFlutter,
required this.app,
required this.installer,
this.currentVersion,
this.externalUpdateUrl,
bool? installationEnabled,
this.zapTargetApp,
this.channel = 'main',
this.relays = const [],
this.queryTimeout = const Duration(seconds: 5),
this.engagementQueryTimeout = const Duration(seconds: 4),
this.engagementMetadataTimeout = const Duration(seconds: 3),
}) : installationEnabled =
installationEnabled ??
(!kIsWeb && defaultTargetPlatform == TargetPlatform.android);