Alipay+ DocsAlipay+ Docs

preload

You can accelerate page loading for Merchant-presented Mode Payment by taking the following two steps:

  1. Integrate the page loading acceleration aars when adding SDK to your project. For more information, see Add SDK to your project.
  2. Call the preload API to enable acceleration as soon as the MPP app is launched.

Method signature

copy
public void preLoad(Context context);

Request parameters

Item

Type

Description

Required

context

Context

The context of the Android activity or application

M

Response parameters

N/A

Sample

copy
AlipayPlusClientMPM.getInstance().preLoad(this);