Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.
Class Info |
|---|
public class StartIapActivityReq implements IMessageEntity Request information of the startIapActivity API. |
Qualifier and Type | Field and Description |
|---|---|
static int | TYPE_SUBSCRIBE_MANAGER_ACTIVITY Redirects your app to the subscription management screen of HUAWEI IAP. It is used when you call the setType method. |
static int | Redirects your app to the subscription editing screen of HUAWEI IAP. It is used when you call the setType method. |
Constructor Name |
|---|
| Constructs a StartIapActivityReq object. |
Qualifier and Type | Method Name and Description |
|---|---|
int | getType() Obtains the type of the page to be redirected to. |
String | Obtains the product ID. |
void | setType(int type) Sets the type of the page to be redirected to. |
void | setSubscribeProductId(String subscribeProductId) Sets the ID of a purchased subscription. |
Fields |
|---|
public static final int TYPE_SUBSCRIBE_MANAGER_ACTIVITY Redirects your app to the subscription management screen of HUAWEI IAP. It is used when you call the setType method. To learn more, please refer to Constant-values. |
Fields |
|---|
public static final int TYPE_SUBSCRIBE_EDIT_ACTIVITY Redirects your app to the subscription editing screen of HUAWEI IAP. It is used when you call the setType method. To learn more, please refer to Constant-values. |
Constructor |
|---|
StartIapActivityReq() Constructs a StartIapActivityReq object. |
Method |
|---|
public int getType() Obtains the type of the page to be redirected to. |
Returns
Type | Description |
|---|---|
int | Type of the page to be redirected to. The options are as follows:
|
Method |
|---|
public String getSubscribeProductId() Obtains the product ID. |
Returns
Method |
|---|
public void setType(int type) Mandatory. Sets the type of the page to be redirected to. |
Parameters
Name | Description |
|---|---|
type | Type of the page to be redirected to. The options are as follows:
|
Method |
|---|
public void setSubscribeProductId(String subscribeProductId) Optional. Sets the ID of a purchased subscription. |
Parameters
Name | Description |
|---|---|
subscribeProductId | ID of a purchased subscription, which is obtained through obtainOwnedPurchases. NOTE This parameter is required only for redirecting to the subscription editing screen. |
Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Quick start
Helps you find desired resources with ease.