STWMyRulesManager

open class STWMyRulesManager

Functions

Link copied to clipboard
open fun addPackageToFavorites(@NonNull context: Context, @NonNull packageUUID: String)
Adds the given package to the favorite list.
Link copied to clipboard
open fun closePackage(@NonNull packageUUID: String)
Close the given package.
Link copied to clipboard
open fun getFavoritePackages(@NonNull context: Context): List<MyRulesPackageItem>
Gets the list of favorite packages.
Link copied to clipboard
open fun getInstance(): STWMyRulesManager
Get or create the single instance of STWMyRulesManager.
Link copied to clipboard
open fun getMyRulesPackageByUUID(@NonNull context: Context, @NonNull packageUUID: String): MyRulesPackageItem
Gets the MyRulesPackageItem by given UUID
Link copied to clipboard
open fun getMyRulesPackageList(@NonNull context: Context): List<MyRulesPackageItem>
Gets the list of MyRules packages
Link copied to clipboard
open fun getPackageIcon(@NonNull packageUUID: String): Bitmap
Gets the icon of the specific package.
Link copied to clipboard
open fun hasMyRulesPackages(@NonNull context: Context): Boolean
Check if the user has any MyRules packages assigned by the admin
Link copied to clipboard
open fun openPackage(@NonNull packageUUID: String): String
Opens The package from stored directory.
Link copied to clipboard
open fun registerPackageListUpdatesListener(@NonNull listener: STWMyRulesPackageListListener)
Register the listener to be notified by all My Rules packages changes.
Link copied to clipboard
open fun removePackageFromFavorites(@NonNull context: Context, @NonNull packageUUID: String)
Removes the given package from favorite list.
Link copied to clipboard
open fun unregisterPackageListUpdatesListener(@NonNull listener: STWMyRulesPackageListListener)
Unregister the listener to not be notified by My Rules packages changes anymore