GeemeeFlutter class
================= MAIN PLUGIN CLASS =================
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
Static Methods
-
destroyBanner(
{required String placementId}) → Future< void> - Destroys the banner ad for the specified placement ID.
-
getUserId(
) → Future< String?> - Retrieves the current user ID set in the SDK.
-
getVersion(
) → Future< String?> - Retrieves the current version of the SDK.
-
initSDK(
{required String appKey}) → Future< void> - ================= SDK ================= Initializes the GeeMee SDK with the provided app key. This method must be called before using any other features of the SDK.
-
isBannerReady(
{required String placementId}) → Future< bool> - Hides the banner ad for the specified placement ID. This method will remove the banner from the view. It does not destroy the banner; it can be shown again later.
-
isInterstitialReady(
{required String placementId}) → Future< bool> - ================= INTERSTITIAL ================= Checks if an interstitial ad is ready to be shown. Returns true if the interstitial ad is ready, false otherwise.
-
isOfferWallReady(
{required String placementId}) → Future< bool> - ================= OFFER WALL ================= Checks if the Offer Wall is ready to be shown. Returns true if the Offer Wall is ready, false otherwise.
-
isUserCenterReady(
{required String placementId}) → Future< bool> - ================= PLAYMEE ================= Checks if the PlayMee User Center is ready to be opened. Returns true if the User Center is ready, false otherwise.
-
loadBanner(
{required String placementId, required GeemeeBannerSize adSize}) → Future< void> -
================= BANNER =================
Loads a banner ad with the specified placement ID and ad size.
The
placementIdis used to identify the specific banner ad configuration. TheadSizespecifies the size of the banner ad to be loaded. Supported sizes are defined in theGeemeeBannerSizeenum. -
openOfferWall(
{required String placementId}) → Future< void> -
Opens the Offer Wall for the user.
The Offer Wall allows users to complete offers in exchange for rewards.
This method should be called only if
isOfferWallReadyreturns true. TheplacementIdis used to identify the specific Offer Wall configuration. -
openUserCenter(
{required String placementId}) → Future< void> -
Opens the PlayMee User Center for the specified placement ID.
The User Center allows users to view their rewards, offers, and account details.
This method should be called only if
isUserCenterReadyreturns true. -
setDebugMode(
{required bool debug}) → Future< void> - Enables or disables debug mode for the SDK.
-
setUserId(
{required String userId}) → Future< void> - Sets the user ID for the SDK. This is optional but recommended for tracking user-specific data. The user ID can be used to identify the user across sessions. It should be unique for each user.
-
showInterstitial(
{required String placementId}) → Future< void> -
Shows an interstitial ad for the specified placement ID.
This method should be called only if
isInterstitialReadyreturns true. The interstitial ad is a full-screen ad that covers the entire screen.