DevCrew-io / camerakit-flutter

An open-source SDK package for Flutter that provides developers with seamless integration and access to Snapchat's CameraKit features within their Flutter applications.
https://pub.dev/packages/camerakit_flutter
MIT License
17 stars 4 forks source link

get list of lenses as json output #42

Closed fahmad480 closed 1 day ago

fahmad480 commented 1 day ago

I thought calling this script will give me a json output of my lens list

getGroupLenses() async {
    try {
      final lenses = await _cameraKitFlutterImpl.getGroupLenses(
          groupIds: Constants.groupIdList);
      if (kDebugMode) {
        print("Lenses: $lenses");
      }
    } on PlatformException {
      if (kDebugMode) {
        print("Failed to open camera kit");
      }
    }
  }

but it make make move to other screen, is there a script to only give me a json output list?