STWMy Rules Manager
Functions
Link copied to clipboard
open fun addPackageToFavorites(@NonNull context: Context, @NonNull packageUUID: String)
Content copied to clipboard
Adds the given package to the favorite list.
Link copied to clipboard
Close the given package.
Link copied to clipboard
open fun getFavoritePackages(@NonNull context: Context): List<MyRulesPackageItem>
Content copied to clipboard
Gets the list of favorite packages.
Link copied to clipboard
Get or create the single instance of STWMyRulesManager.
Link copied to clipboard
open fun getMyRulesPackageByUUID(@NonNull context: Context, @NonNull packageUUID: String): MyRulesPackageItem
Content copied to clipboard
Gets the MyRulesPackageItem by given UUID
Link copied to clipboard
open fun getMyRulesPackageList(@NonNull context: Context): List<MyRulesPackageItem>
Content copied to clipboard
Gets the list of MyRules packages
Link copied to clipboard
Gets the icon of the specific package.
Link copied to clipboard
Check if the user has any MyRules packages assigned by the admin
Link copied to clipboard
Opens The package from stored directory.
Link copied to clipboard
open fun registerPackageListUpdatesListener(@NonNull listener: STWMyRulesPackageListListener)
Content copied to clipboard
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)
Content copied to clipboard
Removes the given package from favorite list.
Link copied to clipboard
open fun unregisterPackageListUpdatesListener(@NonNull listener: STWMyRulesPackageListListener)
Content copied to clipboard
Unregister the listener to not be notified by My Rules packages changes anymore