Skip to main content
Retrieves the layout position of the capsule button (top-right) and of the favorite button.
Requires Appx 1.25.4 or higher.

Parameters

Return Value / Success Callback

Error Codes

Code Example

FAQ

Read the favIcon object returned by this API. To check whether the Mini Program has been added to favorites, use my.isCollected.
On iOS the values can be 0 if the API is called before the capsule button has rendered. Call it with a short delay.

my.setNavigationBar

Set the navigation bar

my.isCollected

Check favorite status