setToggleState is Deprecated

What do I use instead?

The version that doesn’t take a bool as the second parameter but takes in NotificationType instead.

1 Like

Oh I didn’t spot that, thank-you.