Methods
openWidget
openWidgetExample
wepin.openWidget()closeWidget
closeWidgetExample
wepin.closeWidget()getAccounts
getAccountsList<Account> accounts = wepin.getAccounts();Account
AccountLast updated
Was this helpful?
The following shows the methods provided by the Wepin widget Android SDK.
openWidgetThe openWidget method shows the widget window. The screen displayed in the widget window varies depending on the user's login status. If a user is not logged in, the login screen is displayed.
wepin.openWidget()closeWidgetThe closeWidget method closes the widget window. Closing the window does not log users out.
wepin.closeWidget()getAccountsThe getAccounts method returns user accounts of the networks available in the app. The returned value is an array of Account object. getAccounts is a method available after widget login.
List<Account> accounts = wepin.getAccounts();AccountThe interface of the class returned by the getAccounts function is as follows.
address: string
The account address
network: string
The blockchain network of the account. The name of each network can be found below.
Last updated
Was this helpful?
Was this helpful?
public class Account {
String address; // The account address
String network; // The blockchain network of the account
}