NAppUpdateController.self constructor

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

Implementation

factory NAppUpdateController.self({
  required NdkFlutter ndkFlutter,
  required SoftwareAppRef app,
  SoftwareAppRef? zapTargetApp,
  String? currentVersion,
  Uri? externalUpdateUrl,
  bool? installationEnabled,
  String channel = 'main',
  List<String> relays = const [],
  UpdateInstaller? installer,
  Duration queryTimeout = const Duration(seconds: 5),
  Duration engagementQueryTimeout = const Duration(seconds: 4),
  Duration engagementMetadataTimeout = const Duration(seconds: 3),
}) => NAppUpdateController(
  ndkFlutter: ndkFlutter,
  app: app,
  zapTargetApp: zapTargetApp,
  currentVersion: currentVersion,
  externalUpdateUrl: externalUpdateUrl,
  installationEnabled: installationEnabled,
  channel: channel,
  relays: relays,
  installer: installer ?? AndroidPackageInstaller(),
  queryTimeout: queryTimeout,
  engagementQueryTimeout: engagementQueryTimeout,
  engagementMetadataTimeout: engagementMetadataTimeout,
);