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. |
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. |
Returns
Type | Description |
|---|---|
int | Type of the page to be redirected to. The options are as follows:
|
Returns
Parameters
Name | Description |
|---|---|
type | Type of the page to be redirected to. The options are as follows:
|
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. |