AgoraMasamuneAdapter constructor

const AgoraMasamuneAdapter({
  1. required String appId,
  2. required String customerId,
  3. required String customerSecret,
  4. AgoraStorageBucketConfig? storageBucketConfig,
  5. bool enableRecordingByDefault = false,
  6. bool enableScreenCaptureByDefault = false,
  7. required FunctionsAdapter functionsAdapter,
})

Adapter to make Agora.io available on the Masamune framework.

It is available by setting appId, customerId and customerSecret.

It is also necessary to set up a functionsAdapter to obtain the token.

Agora.ioをMasamuneフレームワーク上で利用可能にするためのAdapter。

appIdcustomerIdcustomerSecretを設定することで利用可能になります。

またトークンを取得するためのfunctionsAdapterを設定する必要があります。

Implementation

const AgoraMasamuneAdapter({
  required this.appId,
  required this.customerId,
  required this.customerSecret,
  this.storageBucketConfig,
  this.enableRecordingByDefault = false,
  this.enableScreenCaptureByDefault = false,
  required this.functionsAdapter,
})  : assert(
        enableRecordingByDefault == false || storageBucketConfig != null,
        "If you want to use cloud recording, you must set [storageBucketConfig].",
      ),
      assert(
        enableScreenCaptureByDefault == false || storageBucketConfig != null,
        "If you want to use screen capture, you must set [storageBucketConfig].",
      );