Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
The method getIsPremium() is used to check if a user has a premium account or not. It returns true if the user is a premium member, and false otherwise.
Related terms
setIsPremium(): This method is used to set or update the premium status for a user.
upgradeToPremium(): This method upgrades a regular account to premium status.
downgradeToRegular(): This method downgrades a premium account back to regular status.