setUserCategoryPreference static method
Future
setUserCategoryPreference(
- int categoryId,
- bool categoryEnabled, {
- NetmeraCategoryChannel? channel,
If channel is omitted, the update applies to the category's global (all-channels) preference.
Implementation
static Future<dynamic> setUserCategoryPreference(int categoryId, bool categoryEnabled,
{NetmeraCategoryChannel? channel}) async {
return await _platform.invokeMethod(_setUserCategoryPreference, {
"categoryId": categoryId,
"categoryEnabled": categoryEnabled,
"channel": channel?.rawValue,
});
}