ricardoalcocer / actionbarextras

Titanium Android Native Module that exposes ActionBar features not exposed by the Titanium SDK
MIT License
148 stars 60 forks source link

Get HomeAsUpIcon click #116

Closed caspahouzer closed 7 years ago

caspahouzer commented 7 years ago

How to recognize the click on the home Icon?

I want to use it to execute an own function.

AppWerft commented 7 years ago
win.getActivity().actionBar.setDisplayHomeAsUp(true);
win.getActivity().actionBar.onHomeIconItemSelected = function() {
        win.close();
};

Maybe this?

caspahouzer commented 7 years ago

Yepp. Thanks