All Products
Search
Document Center

Mobile Platform as a Service:QR code page

Last Updated:Feb 05, 2026

You can use AUQRCodeView to display a QR code page.

Preview

image

API reference

/**
 * Sets the profile picture name.
 * @param name
 */
public void setAvatarName(CharSequence name)

/**
 * Sets the QR code information.
 * @param title
 * @param description
 */
public void setCodeInfo(CharSequence title, CharSequence description) 

/**
 * Sets the QR code title.
 * @param title
 */
public void setCodeTitle(CharSequence title) 

/**
 * Sets the QR code description.
 * @param description
 */
public void setCodeDescription(CharSequence description) 

/**
 * Sets the button information with a security token icon.
 * @param title
 * @param content
 */
public void setButtonInfo(CharSequence title, CharSequence content) 

/**
 * Sets the button information.
 * @param title
 * @param content
 * @param isToken Specifies whether to display the security token icon.
 */
public void setButtonInfo(CharSequence title, CharSequence content, boolean isToken) 

/**
 * Sets the button title.
 * @param title
 */
public void setButtonTitle(CharSequence title)

/**
 * Sets whether the button has an icon.
 * @param isToken
 */
public void setButtonToken(boolean isToken) 

/**
 * Sets the button visibility.
 * @param isVisible
 */
public void setButtonVisibility(boolean isVisible) 

/**
 * Sets the button content.
 * @param content
 */
public void setButtonContent(CharSequence content)

/**
 * Gets the profile picture ImageView.
 * @return
 */
public AUImageView getAvatarImage() 

/**
 * Gets the profile picture name View.
 * @return
 */
public AUTextView getAvatarName() 

/**
 * Gets the QR code ImageView.
 * @return
 */
public AUImageView getCodeImage() 

/**
 * Gets the QR code title.
 * @return
 */
public AUTextView getCodeTitle()

/**
 * Gets the QR code description.
 * @return
 */
public AUEmptyGoneTextView getCodeDescription()

/**
 * Gets the button.
 * @return
 */
public AULinearLayout getButton() 

/**
 * Gets the button title.
 * @return
 */
public AUTextView getButtonTitle()

/**
 * Gets the button content.
 * @return
 */
public AUEmptyGoneTextView getButtonContent()

Code example

AUQRCodeView codeView = new AUQRCodeView(this);
codeView.setAvartarName("Lifestyle Account Name");
codeView.setCodeInfo("Scan the QR code with Alipay to join this Lifestyle Circle","This QR code will expire on November 05, 2017");
codeView.setButtonInfo("Tap to generate a security token","Recommend the Lifestyle Account to your WeChat and QQ friends");
codeView.getCodeImage().setImageResource(R.drawable.qr_default);