oneSignal function getPermissionSubscriptionState

Hello everyone,

I would like to use the function getPermissionSubscriptionState() but I can not understand how to put it in place.

Any ideas ?