HIVE Promotion gives users who use the game the ability to effectively expose new news or events in the game. More...
Classes | |
class | Promotion |
HIVE Promotion provides you with the ability to effectively expose new news or events to the game user. More... | |
class | PromotionViewInfo |
Information of Promotion webview (Information to customize your promotion Webview UI) More... | |
class | PromotionBadgeInfo |
Badge information to inform users that new promotions are registered. More... | |
class | PromotionBannerInfo |
Banner information for a specific promotion. More... | |
class | AppInvitationData |
** More... | |
class | AppInvitationCampaign |
Campaign information for invite Campaigns are data that specifies the conditions for rewarding invite. More... | |
class | AppInvitationSenderInfo |
First sender's userInfo who sent UA share invitation. More... | |
Typedefs | |
typedef std::function< void(ResultAPI const &result, PromotionEventType promotionEventType)> | Promotion::onPromotionView |
Promotion View API Result. More... | |
typedef std::function< void(ResultAPI const &result, std::vector< PromotionViewInfo > const &promotionViewInfo)> | Promotion::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)> | Promotion::onPromotionBadgeInfo |
Returns HIVE Promotion badge information. More... | |
typedef std::function< void(ResultAPI const &result, std::vector< PromotionBannerInfo > const &bannerInfoList)> | Promotion::onPromotionBannerInfo |
HIVE Promotion banner information. More... | |
typedef std::function< void(ResultAPI const &result, AppInvitationData const &appInvitationData)> | Promotion::onAppInvitationData |
Return information about request for user invite (UserAcquisition) More... | |
typedef std::function< void(ResultAPI const &result, EngagementEventType engagementEventType, EngagementEventState engagementEventState, picojson::value const ¶m)> | Promotion::onEngagement |
An event listener for the SDK to engage clients in certain conditions. More... | |
typedef std::function< void(ResultAPI const &result, AppInvitationSenderInfo const &senderInfo)> | Promotion::onAppInvitationSenderInfo |
First sender's userInfo who sent UA share invitation. More... | |
Functions | |
static void | Promotion::showPromotion (PromotionType promotionType, bool isForced, onPromotionView listener) |
Shows banner such as new event of game or introduce new game. More... | |
static void | Promotion::showCustomContents (PromotionCustomType customType, std::string contentsKey, onPromotionView listener) |
Show custom Webview to use external content. More... | |
static void | Promotion::showCustomContentsOnGameWindow (PromotionCustomType customType, std::string contentsKey, onPromotionView listener) |
Show custom Webview to use external content. More... | |
static OfferwallState | Promotion::getOfferwallState () |
Returns whether the button is available to invoke an offerwall (free recharging station) within the game. More... | |
static void | Promotion::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 | Promotion::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 | Promotion::showNativeReview (onPromotionView listener) |
Show review popup Positive ratings and reviews of game users will affect other users' use of the game. More... | |
static void | Promotion::showReview (onPromotionView listener) |
Show review popup Positive ratings and reviews of game users will affect other users' use of the game. More... | |
static void | Promotion::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 | Promotion::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 | Promotion::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 | Promotion::getBannerInfo (PromotionCampaignType campaignType, PromotionBannerType bannerType, onPromotionBannerInfo listener) |
Request banner information Request banner information for a specific promotion. More... | |
static void | Promotion::getBannerInfoString (std::string campaignString, std::string bannerString, onPromotionBannerInfo listener) |
Request banner information Request banner information for a specific promotion. More... | |
static void | Promotion::getAppInvitationData (onAppInvitationData listener) |
Request user invite information User acquisition information is provided to attract more users in the game. More... | |
static void | Promotion::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 | Promotion::setEngagementReady (bool isReady) |
It sets whether Engagement event handling is enabled. More... | |
static bool | Promotion::processURI (std::string URI) |
Parse the URI to make it an Event type. More... | |
static void | Promotion::setEngagementHandler (onEngagement engagementHandler) |
It register the Engagement listener. More... | |
static void | Promotion::showUAShare (std::string inviteMessage, std::string inviteLink, onPromotionUAShare uaShareHandler) |
Show dialog to share UA url via SNS. More... | |
static void | Promotion::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... | |
HIVE Promotion gives users who use the game the ability to effectively expose new news or events in the game.
Promotion view (notice, event), reward (coupon, deep link), exit popup (Android), free charging station(Offerwall)
typedef std::function<void(ResultAPI const & result, AppInvitationData const & appInvitationData)> Promotion::onAppInvitationData |
Return information about request for user invite (UserAcquisition)
result | API call result |
appInvitationData | User invite information. |
typedef std::function<void(ResultAPI const & result, AppInvitationSenderInfo const & senderInfo)> Promotion::onAppInvitationSenderInfo |
First sender's userInfo who sent UA share invitation.
result | Result of API call |
senderInfo | First sender's userInfo |
typedef std::function<void(ResultAPI const & result, EngagementEventType engagementEventType, EngagementEventState engagementEventState, picojson::value const & param)> Promotion::onEngagement |
An event listener for the SDK to engage clients in certain conditions.
The specific conditions are, for example, a mobile message (SMS), a URL click on a message in a push notification, or a user action in a promotional view.
result | Result of API call |
engagementEventType | Event type |
engagementEventState | Event status |
param | Event information |
typedef std::function<void(ResultAPI const & result, std::vector<PromotionBadgeInfo> const & badgeInfoList)> Promotion::onPromotionBadgeInfo |
typedef std::function<void(ResultAPI const & result, std::vector<PromotionBannerInfo> const & bannerInfoList)> Promotion::onPromotionBannerInfo |
typedef std::function<void(ResultAPI const & result, PromotionEventType promotionEventType)> Promotion::onPromotionView |
typedef std::function<void(ResultAPI const & result, std::vector<PromotionViewInfo> const & promotionViewInfo)> Promotion::onPromotionViewInfo |
|
strong |
|
strong |
UserEngagement 기능 타입
Enumerator | |
---|---|
EVENT_TYPE | < kHIVEEngagementEventType Engagement의 전체 시작과 끝을 알리는 경우. (이름 변경 예정) |
PROMOTION_VIEW | kHIVEEngagementEventTypePromotionView Engagement에 의해 처리되는 PromotionView인 경우. EventState가 kHIVEEngagementStateEventEnd인 경우 PromotionView의 결과가 ResultAPI와 Param으로 전달된다. |
COUPON | kHIVEEngagementEventTypeCoupon Engagement에 의해 처리된 쿠폰 소모에 대한 결과. EventState가 kHIVEEngagementStateEventEnd인 경우 쿠폰사용의 결과가 ResultAPI와 Param으로 전달된다. |
AUTH_LOGIN_VIEW | kHIVEEngagementEventTypeAuthLogin 유저(클라이언트)에 의해 열리지 않은 로그인 프로세스에 의한 결과를 받는 콜백. |
EVENT | kHIVEEngagementEventTypeEvent Engagement에 의해 처리될 수 없는 이벤트(host가 game인 경우)를 전달해주는 콜백. |
IAP_UPDATED | Deprecated in HIVE SDK 4.5.0. |
IAP_PURCHASE | kHIVEEngagementEventTypeIapPurchase 앱이 시작 혹은 실행 중일 때, 앱 외에서 상품을 구매시도시 불리게 되는 콜백. |
IAP_PROMOTE | kHIVEEngagementEventTypeIapPromote 앱이 시작 혹은 실행 중일 때, 앱 외에서 상품을 구매시도시 불리게 되는 콜백. |
COMPANION | Promotion CPA Link recevied. SDK Will be send promotion companion. |
SOCIAL_MYINQUIRY_VIEW | 내 문의 내역을 오픈 |
SOCIAL_PROFILE_VIEW | 프로필 페이지 오픈 |
COMMUNITY_VIEW | 커뮤니티 페이지를 오픈. Open the community page. |
|
strong |
|
strong |
Banner type selected before requesting rolling banner data.
|
strong |
Campaign type selected before requesting rolling banner data.
|
strong |
Types of Promotion CustomView.
Enumerator | |
---|---|
VIEW | Custom view. |
BOARD | Custom board. |
SPOT | Spot banner. |
DIRECT | Direct campaign. |
|
strong |
|
strong |
Types of Promotion view.
Enumerator | |
---|---|
BANNERLegacy | Full Banner. |
BANNER | Full banner. |
NEWS | News. |
NOTICE | Notice. |
|
static |
Request user invite information
User acquisition information is provided to attract more users in the game.
Data for user acquisition include QR Code, invite links, and campaigns.
A campaign is data that specifies the conditions for rewarding an invite.
The invite URL or QR code provides rewards to both the invited and invited users when the invited user achieves the conditions such as installing the game and achieving a certain level (condition and reward can be set in the back office).
listener | API call result. |
|
static |
return first sender's userInfo who sent UA share invitation First sender's information can be returned after SDK initialize, login and setEngagementReady(true)
AppInvitationSenderInfoHandler | API call result listener |
|
static |
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.
listener | API call result listener |
|
static |
Request banner information
Request banner information for a specific promotion.
Used to retrieve banner information from the game server.
campaignType | "event", "notice", "all", "cross" |
handler | API call result listener |
|
static |
Request banner information
Request banner information for a specific promotion.
Used to retrieve banner information from the game server.
campaignType | custom String campaign type |
handler | API call result listener |
|
static |
Returns whether the button is available to invoke an offerwall (free recharging station) within the game.
The button UI for exposing free recharge stations within the game must be configured to be visible or hidden.
|
static |
Request HIVE Promotion Webview information so that your UI of webview is configured according to the concept of game UI
listener | API call result listener |
|
static |
Parse the URI to make it an Event type.
URI | URI to parse |
|
static |
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.
(Required) Even a single server group without a server group should be properly put in the following example
ex)"addtionalInfo":"{"server":"0","character":"0"}"
additionalInfo | (Required) Additional information data in JSON format |
|
static |
It register the Engagement listener.
engagementHandler |
|
static |
It sets whether Engagement event handling is enabled.
(Such as when a DB is created in the game server) If you want to set it to true, it must be in a state that satisfies the condition of <after login & after registering the listener>, if you want to set it to false, you can always set it.
isReady | Whether Engagement events can be processed. |
|
static |
Show custom Webview to use external content.
promotionCustomType | PromotionCustomType Type |
contentsKey | ID of the custom web page set in the back office. |
listener | API call result listener |
|
static |
Show custom Webview to use external content.
promotionCustomType | PromotionCustomType Type |
contentsKey | ID of the custom web page set in the back office. |
listener | API call result listener |
|
static |
Show exit popup (Android only)
Expose exit popup which include a button called "More games" to lead users to download a new HIVE game.
listener | API call result listener |
|
static |
Show review popup
Positive ratings and reviews of game users will affect other users' use of the game.
It is known that the number of user participation increases by 5 ~ 10 times when the review
Review popup on the device with iOS 10.3 and later is available to rate and write reviews in apps.
|
static |
Shows banner such as new event of game or introduce new game.
menu | Menu Management Name |
handler | API call result handler |
|
static |
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.
A list of the games that the user can download is exposed, and the game is downloaded and executed, and reward is provided in the game as the medium.
listener | API call result listener |
|
static |
Shows banner such as new event of game or introduce new game.
promotionType | Promotion View type |
isForced | If ture, it only works when promotionType is "notice" and "event" and it ignore 'Not seeing it again for 24 hours'. (Note: Since 'Not seeing it again for 24 hours' does not apply, you should only use certain actions, such as viewing as a button action.) If false or omitted, 'Not seeing it again for 24 hours' will operate normally. |
listener | API call result listener |
|
static |
Show review popup
Positive ratings and reviews of game users will affect other users' use of the game.
It is known that the number of user participation increases by 5 ~ 10 times when the review
Depending on the settings of Hive console, Hive normal review popup or customized image review popup will be appeard.
|
static |
Show dialog to share UA url via SNS.
inviteMessage | UA invite message |
inviteLink | UA invite link |
uaShareHandler | API call result listener |