shareCameraEffectToFacebook method

Future shareCameraEffectToFacebook({
  1. CameraEffectTextures? cameraEffectTextures,
  2. CameraEffectArguments? cameraEffectArguments,
  3. String? effectId,
  4. String? contentUrl,
  5. String? pageId,
  6. List<String>? peopleIds,
  7. String? placeId,
  8. String? ref,
  9. String? hashtag,
})

Share a Camera Effect to Facebook method. You have to provide data for cameraEffectTextures or cameraEffectArguments property to use this method.

You can read the comment for the properties in the CameraEffectTextures and CameraEffectArguments classes to know what are their properties use for.

For more information about Camera Effect platform of Facebook, you can follow this link.

Working on: Android and iOS platforms.

Implementation

Future<dynamic> shareCameraEffectToFacebook({
  CameraEffectTextures? cameraEffectTextures,
  CameraEffectArguments? cameraEffectArguments,
  String? effectId,
  String? contentUrl,
  String? pageId,
  List<String>? peopleIds,
  String? placeId,
  String? ref,
  String? hashtag,
}) async {
  assert(cameraEffectArguments != null || cameraEffectTextures != null);

  return _channel.invokeMethod(
    'shareCameraEffectToFacebook',
    <String, dynamic>{
      'cameraEffectTextures': cameraEffectTextures?.toJson(),
      'cameraEffectArguments': cameraEffectArguments?.toJson(),
      'effectId': effectId,
      'contentUrl': contentUrl,
      'pageId': pageId,
      'peopleIds': peopleIds,
      'placeId': placeId,
      'ref': ref,
      'hashtag': hashtag,
    },
  );
}