HIVE SDK for C++

Public Types | Static Public Member Functions | List of all members
Promotion Class Reference

HIVE Promotion provides you with the ability to effectively expose new news or events to the game user. More...

#include <HIVE_Promotion.h>

Public Types

typedef std::function< void(ResultAPI const &result, PromotionEventType promotionEventType)> onPromotionView
 Promotion View API Result. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< PromotionViewInfo > const &promotionViewInfo)> onPromotionViewInfo
 Returns HIVE Promotion Webview information so that your UI of webview is configured according to the concept of game UI. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< PromotionBadgeInfo > const &badgeInfoList)> onPromotionBadgeInfo
 Returns HIVE Promotion badge information. More...
 
typedef std::function< void(ResultAPI const &result, std::vector< PromotionBannerInfo > const &bannerInfoList)> onPromotionBannerInfo
 HIVE Promotion banner information. More...
 
typedef std::function< void(ResultAPI const &result, AppInvitationData const &appInvitationData)> onAppInvitationData
 Return information about request for user invite (UserAcquisition) More...
 
typedef std::function< void(ResultAPI const &result, EngagementEventType engagementEventType, EngagementEventState engagementEventState, picojson::value const &param)> onEngagement
 An event listener for the SDK to engage clients in certain conditions. More...
 
typedef std::function< void(ResultAPI const &result)> onPromotionUAShare
 Returns HIVE UA Share information. More...
 
typedef std::function< void(ResultAPI const &result, AppInvitationSenderInfo const &senderInfo)> onAppInvitationSenderInfo
 First sender's userInfo who sent UA share invitation. More...
 

Static Public Member Functions

static void showPromotion (PromotionType promotionType, bool isForced, onPromotionView listener)
 Shows banner such as new event of game or introduce new game. More...
 
static void showCustomContents (PromotionCustomType customType, std::string contentsKey, onPromotionView listener)
 Show custom Webview to use external content. More...
 
static void showCustomContentsOnGameWindow (PromotionCustomType customType, std::string contentsKey, onPromotionView listener)
 Show custom Webview to use external content. More...
 
static OfferwallState getOfferwallState ()
 Returns whether the button is available to invoke an offerwall (free recharging station) within the game. More...
 
static void showOfferwall (onPromotionView listener)
 Show Offerwall(Free recharging station) (Android only.)
The Offerwall (free recharge station) is an advertising network between HIVE games, which enables existing HIVE users to use the new HIVE game. More...
 
static void showNews (std::string menu, std::vector< int > giftPidList, onPromotionView listener)
 Shows banner such as new event of game or introduce new game. More...
 
static void showNativeReview (onPromotionView listener)
 Show review popup
Positive ratings and reviews of game users will affect other users' use of the game. More...
 
static void showReview (onPromotionView listener)
 Show review popup
Positive ratings and reviews of game users will affect other users' use of the game. More...
 
static void showExit (onPromotionView listener)
 Show exit popup (Android only)
Expose exit popup which include a button called "More games" to lead users to download a new HIVE game. More...
 
static void getViewInfo (PromotionCustomType customType, std::string contentsKey, onPromotionViewInfo listener)
 Request HIVE Promotion Webview information so that your UI of webview is configured according to the concept of game UI
More...
 
static void getBadgeInfo (onPromotionBadgeInfo listener)
 Request badge information
The promotional badge is information that highlights the button UI of the game to inform the user that a new promotion has been registered. More...
 
static void getBannerInfo (PromotionCampaignType campaignType, PromotionBannerType bannerType, onPromotionBannerInfo listener)
 Request banner information
Request banner information for a specific promotion. More...
 
static void getBannerInfoString (std::string campaignString, std::string bannerString, onPromotionBannerInfo listener)
 Request banner information
Request banner information for a specific promotion. More...
 
static void getAppInvitationData (onAppInvitationData listener)
 Request user invite information
User acquisition information is provided to attract more users in the game. More...
 
static void setAdditionalInfo (std::string additionalInfo)
 You can set a string in JSON format when you want to expose a specific event page in the Promotion View or want to pass additional information to the Promotion Server. More...
 
static ResultAPI setEngagementReady (bool isReady)
 It sets whether Engagement event handling is enabled. More...
 
static bool processURI (std::string URI)
 Parse the URI to make it an Event type. More...
 
static void setEngagementHandler (onEngagement engagementHandler)
 It register the Engagement listener. More...
 
static void showUAShare (std::string inviteMessage, std::string inviteLink, onPromotionUAShare uaShareHandler)
 Show dialog to share UA url via SNS. More...
 
static void updatePromotionData ()
 /~korean Promotion 정보 갱신
Promotion 새소식 페이지 등의 노출에 필요한 정보를 갱신한다. More...
 
static void getAppInvitationSenderInfo (onAppInvitationSenderInfo appInvitationSenderInfoHandler)
 return first sender's userInfo who sent UA share invitation First sender's information can be returned after SDK initialize, login and setEngagementReady(true) More...
 

Detailed Description

HIVE Promotion provides you with the ability to effectively expose new news or events to the game user.


Promotion view (notice, event), reward (coupon, deep link), exit popup (Android), free charging station(Offerwall)

Author
ryuvsken
Since
4.0.0

Member Typedef Documentation

◆ onPromotionUAShare

typedef std::function<void(ResultAPI const & result)> Promotion::onPromotionUAShare

Returns HIVE UA Share information.

@paraam result API call result

Member Function Documentation

◆ updatePromotionData()

static void Promotion::updatePromotionData ( )
static

/~korean Promotion 정보 갱신
Promotion 새소식 페이지 등의 노출에 필요한 정보를 갱신한다.

/~english Update information of Promotion Update promotion data to show Promotion UI.


The documentation for this class was generated from the following file:
Copyright © Com2uS Platform Corporation. All Right Reserved. Terms of Use Privacy Policy