setDeviceInterests method

  1. @override
Future<void> setDeviceInterests(
  1. List<String> interests
)
override

Sets the interests provided with a List. This overrides and unsubscribe any interests not listed in interests.

Example Usage

function someAsyncFunction() async {
  await PusherBeams.instance.setDeviceInterests(['banana', 'apple', 'garlic']);
}

Throws an Exception in case of failure.

Implementation

@override
Future<void> setDeviceInterests(List<String> interests) async {
  await _pusherBeamsApi.setDeviceInterests(interests);
}