NAppUpdateController.self constructor
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),
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,
);