On News page, you can see the event banners and notice of the games registered in Hive console together on one page.

The Coupon Exchange appears on the News page on Android device only.

Configuring News Page

Register the contents of Notice, Cross-promotion and Event banner, which compose News page, on Hive Console. You can specify the sequence of components, for example, whether to place notice at the top or event banners at the top and whether to display the badage notifying the imminent end of an event and the badge notifying the available period one can receive gifts from the Hive console. For more information about registration, see Hive Console Promotion.

Displaying News Page

  • Following image is an example to show a news page.

To show up the news page, set promotionType as PromotionType.NEWS and call showPromotion() method in the Promotion class.
Followings are sample codes to display a news page.

Unity®

API Reference: hive.Promotion.showPromotion

C++

API Reference: Promotion::showPromotion

Kotlin

API Reference: Promotion.showPromotion

Java

API Reference: com.hive.Promotion.showPromotion

Swift

API Reference: PromotionInterface.showPromotion

Objective-C

API Reference: HIVEPromotion::showPromotion

  • “Do not display News page again” option
    You can let users choose not to watch the news page for a day. To activate a checkbox not to show up the page, set isForced parameter as false when calling showPromotion() method in the Promotion class.

  • Displaying News page by force
    If you do not provide users with the option “Do not display this page again”, or even if the user has already opted not to view it for a day, but if you want to ignore the user’s preferences and display the news page to the user, you can set isForced parameter to true when calling showPromotion() method in the Promotion class.
    If you set isForced parameter as true, News page does not show a checkbox to tick “Do not display this page again”. Even the user already ticked “Do not display this page again”, News page is forcibly shown up.

Displaying News Page with Notice activated

To display the News page with Notice only, set promotionType as PromotionType.NOTICE, and call showPromotion() method in the Promotion class.
Followings are sample codes to display a list of notice.

Unity®

API Reference: hive.Promotion.showPromotion

C++

API Reference: Promotion ::showPromotion

Kotlin

API Reference: Promotion.showPromotion

Java

API Reference: Promotion .INSTANCE.showPromotion

Swift

API Reference: PromotionInterface.showPromotion

Objective-C

API Reference: HIVEPromotion showPromotion

Displaying News Page with a particular menu activated

To display the News page with a particular menu, call showNews() method in the Promotion class with promotionType as a parameter which registered in setting News page.
Followings are sample codes to display the News page with a particular menu activated.

Unity®

API Reference: hive .Promotion.showNews

C++

API Reference: Promotion ::showNews

Kotlin

API Reference: Promotion.showNews

Java

API Reference: Promotion .INSTANCE.showNews

Swift

API Reference: PromotionInterface.showNews

Objective-C

API Reference: HIVEPromotion showNews

Display a News Page Highlighting an Achieved Event Banner

To display the news page highlighting accomplished events, use the achieved event banner number (pid) as a parameter when calling the Promotion class showNews() method. The following is an example code to display a news page highlighting the achieved event banner when a gamer achieved a specific event.

Unity®

API Reference: hive.Promotion.showNews

C++

API Reference: Promotion::showCustomContents

Kotlin

API Reference: com.hive.Promotion.showCustomContents

Java

API Reference: com.hive.Promotion.showCustomContents

Objective-C

API Reference: HivePromotion:showCustomContents

Swift

API Reference: HivePromotion:showCustomContents

The example of the achieved event banner looks like the below.

 

Adding Data Renewal API

News page data is sent through a communication with Hive server after sign-in. If user changes the settings in game such as game language and game server, data renewal is needed. Data may not be updated to the latest if user goes on a long gaming binge. In these cases, game studio is required to manually renew the data on News page when user access to game lobby. Call updatePromotionData() method in the Promotion class for data renewal.
Followings are sample codes to renew the News data.

Unity®

API Reference: hive.Promotion.updatePromotionData

C++

API Reference: Promotion::updatePromotionData

Kotlin

API Reference: Promotion.updatePromotionData

Java

API Reference: Promotion.INSTANCE.updatePromotionData

Swift

API Reference: PromotionInterface.updatePromotionData

Objective-C

API Reference: HIVEPromoiton updatePromotionData

Adding improved Data Renewal API

  • The logic of calling 'updatePromotionData API' after calling 'setServerID API' has been improved so that the same operation is performed by calling the updateServerID API only once.
  • The logic of calling 'pdatePromotionData API' after calling 'setGameLanguage API' has been improved so that it works the same by calling the 'updateGameLanguage API' only once.

The following is an example code to add the improved Data Renewal API

Unity®

API Reference: hive.Promotion.updateServerId
API Reference: hive.Promotion.updateGameLanguage

C++

API Reference: Promotion.updateServerId
API Reference: Promotion.updateGameLanguage

Kotlin

API Reference: Configuration.updateServerId
API Reference: Configuration.updateGameLanguage

Java

API Reference: com.hive.Promotion.updateServerId
API Reference: com.hive.Promotion.updateGameLanguage

Swift

API Reference: ConfigurationInterface .updateServerId
API Reference: ConfigurationInterface .updateGameLanguage

Objective-C

API Reference: HIVEPromotion::updateServerId
API Reference: HIVEPromotion::updateGameLanguage