connect static method
Future<Onvif>
connect({
- required dynamic host,
- required dynamic username,
- required dynamic password,
- LogOptions logOptions = const LogOptions(LogLevel.error, stackTraceLevel: LogLevel.off),
- LoggyPrinter printer = const PrettyPrinter(showColors: false),
- Dio? dio,
Implementation
static Future<Onvif> connect(
{required host,
required username,
required password,
LogOptions logOptions = const LogOptions(
LogLevel.error,
stackTraceLevel: LogLevel.off,
),
LoggyPrinter printer = const PrettyPrinter(
showColors: false,
),
Dio? dio}) async {
final onvif = Onvif(
authInfo: AuthInfo(
host: host,
username: username,
password: password,
),
logOptions: logOptions,
printer: printer,
dio: dio);
await onvif.initialize();
return onvif;
}