configure method

  1. @override
Future<void> configure(
  1. String apiKey,
  2. bool verificationMode,
  3. double? videoCacheMaxBytes
)
override

Configures the Giphy SDK with the given settings.

This method sends a 'configure' method call to the native platform with the specified API key, verification mode, and optional video cache size.

apiKey The API key for the Giphy SDK. verificationMode A boolean indicating whether verification mode is enabled. videoCacheMaxBytes An optional parameter specifying the video cache size for ExoPlayer on the Android platform. Note: If videoCacheMaxBytes is 0, the cache initialization will be skipped, and Giphy Clips will not work. You may want to skip this setting if you use another version of ExoPlayer that is not compatible with the Giphy SDK but still wish to receive gifs from Giphy.

Implementation

@override
Future<void> configure(
    String apiKey, bool verificationMode, double? videoCacheMaxBytes) async {
  await _channel.invokeMethod('configure', {
    'apiKey': apiKey,
    'verificationMode': verificationMode,
    'videoCacheMaxBytes': videoCacheMaxBytes,
  });
}