Custom Menu
You can set a custom menu inside Nuclei SDK. While initializing Nuclei SDK in your application class, you can add a list of menu items as shown below
private void initNuclei() {
// You can set a menu
List<String> menuList = new ArrayList<>();
menuList.add("Partner Home");
menuList.add("Sdk Logout");
nucleiSDK = NucleiSDK.bind(this)
...
.setMenuList(menuList)
...
.init();
}
You can then handle the menu click in the overridden method of NucleiCallback
as shown below
@Override
public void onNucleiOptionsItemSelected(int menuIndex) {
Log.d(TAG, "Click on Menu:" + menuList.get(menuIndex));
switch (menuIndex) {
case 0:
// Handle "Menu 1 Selected"
break;
case 1:
// Handle "Menu 2 Selected"
break;
default:
//do something
}
}