NAppUpdateController constructor

NAppUpdateController({
  1. required NdkFlutter ndkFlutter,
  2. required SoftwareAppRef app,
  3. required UpdateInstaller installer,
  4. String? currentVersion,
  5. Uri? externalUpdateUrl,
  6. bool? installationEnabled,
  7. SoftwareAppRef? zapTargetApp,
  8. String channel = 'main',
  9. List<String> relays = const [],
  10. Duration queryTimeout = const Duration(seconds: 5),
  11. Duration engagementQueryTimeout = const Duration(seconds: 4),
  12. 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);