C# Class Applicasa.VirtualGood

Show file Open project: Applicasa/Sample-App-Unity Class Usage Examples

Public Properties

Property Type Description
innerVirtualGood System.IntPtr
innerVirtualGoodJavaObject UnityEngine.AndroidJavaObject

Public Methods

Method Description
Buy ( int quantity, Currency currencyKind, System.Action action ) : void
BuyWithRealMoney ( System.Action action ) : void
GetLocalArrayWithQuery ( Query query, GetVirtualGoodArrayFinished callback ) : void
GetVirtualGoodArray ( VirtualGoodArray virtualGoodArray ) : Applicasa.VirtualGood[]
GetVirtualGoods ( VirtualGoodType type, GetVirtualGoodArrayFinished callback ) : void
GetVirtualGoods ( VirtualGoodType type, VirtualGoodCategory virtualGoodCategory, GetVirtualGoodArrayFinished callback ) : void
GetVirtualGoodsByCategoryPosition ( VirtualGoodType type, int position, VirtualGood callback ) : void
Give ( int quantity, System.Action action ) : void
Use ( int quantity, System.Action action ) : void
VirtualGood ( IntPtr virtualGoodPtr ) : System
VirtualGood ( IntPtr virtualGoodPtr, AndroidJavaObject virtualGoodJavaObject ) : System

Private Methods

Method Description
ApplicasaVirtualGoodBuyQuantity ( System virtualGood, int quantity, Currency currencyKind, System.Action callback ) : void
ApplicasaVirtualGoodBuyWithRealMoney ( System virtualGood, System.Action callback ) : void
ApplicasaVirtualGoodGetItunesPrice ( System virtualGood ) : string
ApplicasaVirtualGoodGetLocalArrayWithQuery ( IntPtr query, GetVirtualGoodArrayFinished callback ) : void
ApplicasaVirtualGoodGetProduct ( System virtualGood ) : SKProduct
ApplicasaVirtualGoodGetVirtualGoodAndroidBundleMax ( System virtualGood ) : float
ApplicasaVirtualGoodGetVirtualGoodAndroidBundleMin ( System virtualGood ) : float
ApplicasaVirtualGoodGetVirtualGoodAppleIdentifier ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodConsumable ( System virtualGood ) : bool
ApplicasaVirtualGoodGetVirtualGoodDescription ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodGoogleIdentifier ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodID ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodIOSBundleMax ( System virtualGood ) : float
ApplicasaVirtualGoodGetVirtualGoodIOSBundleMin ( System virtualGood ) : float
ApplicasaVirtualGoodGetVirtualGoodImageA ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodImageB ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodImageC ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodInAppleStore ( System virtualGood ) : bool
ApplicasaVirtualGoodGetVirtualGoodInGoogleStore ( System virtualGood ) : bool
ApplicasaVirtualGoodGetVirtualGoodIsDeal ( System virtualGood ) : bool
ApplicasaVirtualGoodGetVirtualGoodIsStoreItem ( System virtualGood ) : bool
ApplicasaVirtualGoodGetVirtualGoodLastUpdate ( System virtualGood ) : double
ApplicasaVirtualGoodGetVirtualGoodMainCategory ( System virtualGood ) : IntPtr
ApplicasaVirtualGoodGetVirtualGoodMainCurrency ( System virtualGood ) : int
ApplicasaVirtualGoodGetVirtualGoodMaxForUser ( System virtualGood ) : int
ApplicasaVirtualGoodGetVirtualGoodPos ( System virtualGood ) : int
ApplicasaVirtualGoodGetVirtualGoodQuantity ( System virtualGood ) : int
ApplicasaVirtualGoodGetVirtualGoodRelatedVirtualGood ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodSecondaryCurrency ( System virtualGood ) : int
ApplicasaVirtualGoodGetVirtualGoodStoreItemPrice ( System virtualGood ) : float
ApplicasaVirtualGoodGetVirtualGoodTitle ( System virtualGood ) : string
ApplicasaVirtualGoodGetVirtualGoodUserInventory ( System virtualGood ) : int
ApplicasaVirtualGoodGiveQuantity ( System virtualGood, int quantity, System.Action callback ) : void
ApplicasaVirtualGoodSetVirtualGoodAndroidBundleMax ( System virtualGood, float virtualGoodAndroidBundleMax ) : void
ApplicasaVirtualGoodSetVirtualGoodAndroidBundleMin ( System virtualGood, float virtualGoodAndroidBundleMin ) : void
ApplicasaVirtualGoodSetVirtualGoodAppleIdentifier ( System virtualGood, string virtualGoodAppleIdentifier ) : void
ApplicasaVirtualGoodSetVirtualGoodConsumable ( System virtualGood, bool virtualGoodConsumable ) : void
ApplicasaVirtualGoodSetVirtualGoodDescription ( System virtualGood, string virtualGoodDescription ) : void
ApplicasaVirtualGoodSetVirtualGoodGoogleIdentifier ( System virtualGood, string virtualGoodGoogleIdentifier ) : void
ApplicasaVirtualGoodSetVirtualGoodID ( System virtualGood, string virtualGoodID ) : void
ApplicasaVirtualGoodSetVirtualGoodIOSBundleMax ( System virtualGood, float virtualGoodIOSBundleMax ) : void
ApplicasaVirtualGoodSetVirtualGoodIOSBundleMin ( System virtualGood, float virtualGoodIOSBundleMin ) : void
ApplicasaVirtualGoodSetVirtualGoodImageA ( System virtualGood, string virtualGoodImageA ) : void
ApplicasaVirtualGoodSetVirtualGoodImageB ( System virtualGood, string virtualGoodImageB ) : void
ApplicasaVirtualGoodSetVirtualGoodImageC ( System virtualGood, string virtualGoodImageC ) : void
ApplicasaVirtualGoodSetVirtualGoodInAppleStore ( System virtualGood, bool virtualGoodInAppleStore ) : void
ApplicasaVirtualGoodSetVirtualGoodInGoogleStore ( System virtualGood, bool virtualGoodInGoogleStore ) : void
ApplicasaVirtualGoodSetVirtualGoodIsDeal ( System virtualGood, bool virtualGoodIsDeal ) : void
ApplicasaVirtualGoodSetVirtualGoodIsStoreItem ( System virtualGood, bool virtualGoodIsStoreItem ) : void
ApplicasaVirtualGoodSetVirtualGoodMainCategory ( System virtualGood, IntPtr virtualGoodMainCategory ) : void
ApplicasaVirtualGoodSetVirtualGoodMainCurrency ( System virtualGood, int virtualGoodMainCurrency ) : void
ApplicasaVirtualGoodSetVirtualGoodMaxForUser ( System virtualGood, int virtualGoodMaxForUser ) : void
ApplicasaVirtualGoodSetVirtualGoodQuantity ( System virtualGood, int virtualGoodQuantity ) : void
ApplicasaVirtualGoodSetVirtualGoodRelatedVirtualGood ( System virtualGood, string virtualGoodRelatedVirtualGood ) : void
ApplicasaVirtualGoodSetVirtualGoodSecondaryCurrency ( System virtualGood, int virtualGoodSecondaryCurrency ) : void
ApplicasaVirtualGoodSetVirtualGoodStoreItemPrice ( System virtualGood, float virtualGoodStoreItemPrice ) : void
ApplicasaVirtualGoodSetVirtualGoodTitle ( System virtualGood, string virtualGoodTitle ) : void
ApplicasaVirtualGoodSetVirtualGoodUserInventory ( System virtualGood, int virtualGoodUserInventory ) : void
ApplicasaVirtualGoodUseQuantity ( System virtualGood, int quantity, System.Action callback ) : void
ApplicasaVirtualGoodsGetVirtualGoodsByCategoryPosition ( VirtualGoodType type, int position, VirtualGood callback ) : void
ApplicasaVirtualGoodsGetVirtualGoodsOfType ( VirtualGoodType type, GetVirtualGoodArrayFinished callback ) : void
ApplicasaVirtualGoodsGetVirtualGoodsOfTypeAndCategory ( VirtualGoodType type, IntPtr virtualGoodCategory, GetVirtualGoodArrayFinished callback ) : void
setGetVirtualGoodArrayFinished ( GetVirtualGoodArrayFinished callback, int uniqueActionID ) : void

Method Details

Buy() public method

public Buy ( int quantity, Currency currencyKind, System.Action action ) : void
quantity int
currencyKind System.Currency
action System.Action
return void

BuyWithRealMoney() public method

public BuyWithRealMoney ( System.Action action ) : void
action System.Action
return void

GetLocalArrayWithQuery() public static method

public static GetLocalArrayWithQuery ( Query query, GetVirtualGoodArrayFinished callback ) : void
query Query
callback GetVirtualGoodArrayFinished
return void

GetVirtualGoodArray() public static method

public static GetVirtualGoodArray ( VirtualGoodArray virtualGoodArray ) : Applicasa.VirtualGood[]
virtualGoodArray VirtualGoodArray
return Applicasa.VirtualGood[]

GetVirtualGoods() public static method

public static GetVirtualGoods ( VirtualGoodType type, GetVirtualGoodArrayFinished callback ) : void
type VirtualGoodType
callback GetVirtualGoodArrayFinished
return void

GetVirtualGoods() public static method

public static GetVirtualGoods ( VirtualGoodType type, VirtualGoodCategory virtualGoodCategory, GetVirtualGoodArrayFinished callback ) : void
type VirtualGoodType
virtualGoodCategory VirtualGoodCategory
callback GetVirtualGoodArrayFinished
return void

GetVirtualGoodsByCategoryPosition() public static method

public static GetVirtualGoodsByCategoryPosition ( VirtualGoodType type, int position, VirtualGood callback ) : void
type VirtualGoodType
position int
callback VirtualGood
return void

Give() public method

public Give ( int quantity, System.Action action ) : void
quantity int
action System.Action
return void

Use() public method

public Use ( int quantity, System.Action action ) : void
quantity int
action System.Action
return void

VirtualGood() public method

public VirtualGood ( IntPtr virtualGoodPtr ) : System
virtualGoodPtr System.IntPtr
return System

VirtualGood() public method

public VirtualGood ( IntPtr virtualGoodPtr, AndroidJavaObject virtualGoodJavaObject ) : System
virtualGoodPtr System.IntPtr
virtualGoodJavaObject UnityEngine.AndroidJavaObject
return System

Property Details

innerVirtualGood public property

public IntPtr,System innerVirtualGood
return System.IntPtr

innerVirtualGoodJavaObject public property

public AndroidJavaObject,UnityEngine innerVirtualGoodJavaObject
return UnityEngine.AndroidJavaObject