mapwize-ui-react-native
Version:
Fully featured and ready to use UI to add Mapwize Indoor Maps and Navigation in your React Native app.
46 lines (45 loc) • 1.52 kB
JavaScript
const defaultCallbackInterceptor = {
onUiReady: mapwizeViewRef => {// console.log('onUiReady')
},
onDirectionWillStart: (venue, universe, from, to, mode, isNavigation) => {
// console.log(
// 'onDirectionWillStart'
// // venue,
// // universe,
// // from,
// // to,
// // mode,
// )
return Promise.resolve(undefined);
},
onNavigationRequested: (venue, universe, navigationProp) => {
// console.log(
// 'onNavigationRequested'
// // venue,
// // universe,
// // navigationProp,
// )
return undefined;
},
shouldDisplayInformationButton: placeDetails => {
// console.log('shouldDisplayInformationButton'); //, placeDetails);
return true;
},
onInformationButtonClick: mapwizeObject => {// console.log('onInformationButtonClick') //, mapwizeObject);
},
onMenuButtonClick: () => {// console.log('onMenuButtonClick')
},
onFollowUserButtonClickWithoutLocation: () => {// console.log('onFollowUserButtonClickWithoutLocation')
},
/**
* Called before displaying the details view. You can use this method to change the content of the view on the fly.
*/
onPlaceSelected: (placeDetails, rowsContents, buttonsContents) => {// console.log('onPlaceSelected') //, placeDetails, rowsContents, buttonsContents);
}
};
export const buildCallbackInterceptor = callbackInterceptor => {
return { ...defaultCallbackInterceptor,
...callbackInterceptor
};
};
//# sourceMappingURL=devCallbackInterceptor.js.map