getDeviceInterests method

  1. @override
Future<List<String?>> getDeviceInterests()
override

Get the interests registered in this device. Returns a List containing the interests as String. Throws NullRejectionException or Exception in case the JS promise fails.

Implementation

@override
Future<List<String?>> getDeviceInterests() async {
  final List<dynamic> interests =
      await promiseToFuture(_beamsClient!.getDeviceInterests());

  return interests.cast<String?>();
}