HIVE SDK for Unity3D

Public Types | Public Member Functions | Static Public Member Functions | List of all members
hive.IAPV4 Class Reference

Currently, Hive IAP supports Apple AppStore, Google PlayStore, ONEStore, Samsung GalaxyStore, Amazon AppStore, Facebook Cloud Games, Huawei AppConnect, PG, Steam and Hive Lebi. More...

Public Types

enum  IAPV4Type {
}
 

Public Member Functions

delegate void onIAPV4MarketInfo (ResultAPI result, List< IAPV4Type > iapV4TypeList)
 HIVE IAPV4 Market information request result callback.
 
delegate void onIAPV4ProductInfo (ResultAPI result, List< IAPV4Product > iapV4ProductList, int balance)
 HIVE IAPV4 Product Information request callback.
 
delegate void onIAPV4Purchase (ResultAPI result, IAPV4Receipt iapV4Receipt)
 Purchase request result callback
Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
delegate void onIAPV4Restore (ResultAPI result, List< IAPV4Receipt > iapv4ReceiptList)
 HIVE IAPV4 Restore request result callback
It may happen that the item delivery fails due to various situations in the product purchase process.
 
delegate void onIAPV4TransactionFinish (ResultAPI result, String marketPid)
 HIVE IAP v4 Transaction Finish request result callback

 
delegate void onIAPV4TransactionMultiFinish (List< ResultAPI > resultList, List< String > marketPidList)
 HIVE IAP v4 Multiple Transaction Finish request result callback

 
delegate void onIAPV4ShowInAppMessages (int responseCode)
 Google In-App Offers.
 

Static Public Member Functions

static void marketConnect (onIAPV4MarketInfo listener)
 IAPV4 It initialize IAPV4 Purchase module.
 
static void getMarketProductInfo (List< String > marketPidList, onIAPV4ProductInfo listener)
 Hive IAPV4 It returns information for composition of the market product.
 
static void getProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product.
 
static void getSubscriptionProductInfo (onIAPV4ProductInfo listener)
 HIVE IAPV4 It returns information for composition of the product.
 
static void purchase (String marketPid, String iapPayload, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void purchase (String marketPid, String iapPayload, int quantity, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void purchaseSubscriptionUpdate (String marketPid, String oldMarketPid, String iapPayload, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void purchaseSubscription (IAPV4PurchaseParam param, onIAPV4Purchase listener)
 Request purchase of market product (marketPid) registered in App Store, Google Store, etc.
 
static void restore (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered.
 
static void restoreSubscription (onIAPV4Restore listener)
 HIVE IAPV4 It restore the item that has not been delivered.
 
static void transactionFinish (String marketPid, onIAPV4TransactionFinish listener)
 HIVE IAP v4 It requests the transaction completion processing for the purchase receipt of the item that have been delivered.
 
static void transactionMultiFinish (List< String > marketPidList, onIAPV4TransactionMultiFinish listener)
 HIVE IAP v4 It requests the multiple transaction completion processing for the purchase receipt of the item that have been delivered.
 
static IAPV4Type getSelectedMarket ()
 현재 선택된 마켓 타입을 반환한다.
 
static string getAccountUuid ()
 현재 계정의 UUIDv3 값을 반환한다.
 
static void showInAppMessages (int categoryId, onIAPV4ShowInAppMessages listener)
 Google In-App Offers.
 

Detailed Description

Currently, Hive IAP supports Apple AppStore, Google PlayStore, ONEStore, Samsung GalaxyStore, Amazon AppStore, Facebook Cloud Games, Huawei AppConnect, PG, Steam and Hive Lebi.


Hive Lebi store is a system that can organize stores and purchase goods in Chinese market. It is operated by Hive itself.

Since
4.4.0
Author
imsunghoon

Member Enumeration Documentation

◆ IAPV4Type

Enumerator
APPLE_APPSTORE 

Apple App Store.

GOOGLE_PLAYSTORE 

Google Play Store.

HIVE_LEBI 

HIVE Lebi.

ONESTORE 

OneStore.

AMAZON_APPSTORE 

Amazon App Store.

SAMSUNG_GALAXYSTORE 

Samsung Galaxy Store.

HUAWEI_APPGALLERY 

Huawei App Gallery.

FUNTAP 

Funtap.

OPPO_APPMARKET 

OPPO App Market.

VIVO_APPSTORE 

VIVO App Store.

TENCENT_MYAPP 

TENCENT Myapp.

XIAOMI_APPSTORE 

Xiaomi App Store.

HUAWEI_APPGALLERY_CHINA 

Huawei App Gallery China.

FACEBOOK_CLOUD_GAME 

Facebook Cloud Game (deprecated)

HIVESTORE 

HiveStore.

STEAM 

Steam.

NOWGG 

Nowgg.

Member Function Documentation

◆ onIAPV4ShowInAppMessages()

delegate void hive.IAPV4.onIAPV4ShowInAppMessages ( int responseCode)

Google In-App Offers.

Parameters
responseCode2(NAVIGATE_TO_DEV_APP_STORE) 일 경우 유저가 제안(Offer)를 확인하고 사용하기를 원한 상황입니다. 개발자는 유저가 구매할 인앱 항목을 선택할 수 있는 게임/앱 내 상점으로 (유저가 해당 화면에 없는 경우) 유저를 이동해야 합니다. 0 은 아무런 액션을 하지 않아도 되고, 음수는 에러상황 입니다.

◆ onIAPV4TransactionMultiFinish()

delegate void hive.IAPV4.onIAPV4TransactionMultiFinish ( List< ResultAPI > resultList,
List< String > marketPidList )

HIVE IAP v4 Multiple Transaction Finish request result callback

Parameters
resultListResult list of the transaction end
marketPidListmarketPid list of the transaction end
See also
#transactionMultiFinish(List, onIAPV4TransactionMultiFinish)

◆ showInAppMessages()

static void hive.IAPV4.showInAppMessages ( int categoryId,
onIAPV4ShowInAppMessages listener )
static

Google In-App Offers.

Parameters
categoryId3(PROMOTIONAL)
listenerInt(responseCode) 가 2(NAVIGATE_TO_DEV_APP_STORE) 일 경우 유저가 제안(Offer)를 확인하고 사용하기를 원한 상황입니다. 개발자는 유저가 구매할 인앱 항목을 선택할 수 있는 게임/앱 내 상점으로 (유저가 해당 화면에 없는 경우) 유저를 이동해야 합니다. 0 은 아무런 액션을 하지 않아도 되고, 음수는 에러상황 입니다.
Since
4.21.0.0

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