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.

Only Essential Cookies
Accept All

Documents from this version have been archived, and will not continue to be maintained. Please use the latest version.

HMS Core ReferencesIn-App PurchasesClient APIsiap.entityStartIapActivityReq

StartIapActivityReq

CLASS info
public class StartIapActivityReq implements IMessageEntity
Request information of the startIapActivity API.

Public Constructor Summary

Constructor name

StartIapActivityReq()

Constructs a StartIapActivityReq object.

Constant Summary

ReturnMethod
intTYPE_SUBSCRIBE_MANAGER_ACTIVITY

Redirects your app to the subscription management page of HUAWEI IAP. It is used when you call the setType method.

intTYPE_SUBSCRIBE_EDIT_ACTIVITY

Redirects your app to the subscription editing page of HUAWEI IAP. It is used when you call the setType method.

Public Method Summary

int

getType()

Obtains the type of the page to be redirected to.

String

getSubscribeProductId()

Obtains a 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 product.

Public Methods

Method
public int getType()
Obtains the type of the page to be redirected to.

Return

typedesc
int

Type of the page to be redirected to.

  • 2: subscription management page

  • 3: subscription editing page

Method
public String getSubscribeProductId()
Obtains a product ID.

Return

typedesc
String

ID of a subscription.

Note:

This parameter is required only for redirecting to the subscription editing page.

Method
public void setType(int type)
Sets the type of the page to be redirected to.

Parameters

Parameter namedesc
type

Type of the page to be redirected to.

  • 2: subscription management page

  • 3: subscription editing page

Method
public void setSubscribeProductId(String subscribeProductId)
Sets the ID of a product.

Parameters

Parameter namedesc
subscribeProductId

ID of a subscription.

Note:

This parameter is required only for redirecting to the subscription editing page.

This page may contain third-party content. For details, click here.