initialize method

Future<void> initialize(
  1. String customerKey,
  2. String customerSecret
)

Initializes the SDK using the customerKey and customerSecret. For security reasons, we recommend using the initializeToken method in production. Use initialize method only for prototyping new applications.

Implementation

Future<void> initialize(String customerKey, String customerSecret) async {
  developer.log(
      'Initialize method is deprecated. For security reasons Dolby recommends the initializeToken method in production. Use initialize method for prototyping of the app only.',
      name: "CommsApi");

  final result = await _methodChannel.invokeMethod<void>('initialize',
      {"customerKey": customerKey, "customerSecret": customerSecret});
  return result;
}