shareCameraEffectToFacebook method
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,
},
);
}