⚠️ Deprecation Notice
ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev
title: "isSessionEnabled"
Check if a session is enabled. You can also check this only by the permissionId using isPermissionEnabled.
Usage
bool isEnabled = instance.isSessionEnabled(session);Parameters
instance
- Type:
AccountInstance
The instance of the account used for testing.
session
- Type:
Session
The session to check if it is enabled.
Returns
isEnabled
- Type:
bool
Returns true if the session is enabled and false otherwise.