import { DrawerCallbacksModel } from "./drawer-callbacks-model" ; import { DrawerStateChangingEventArgs , DrawerStateChangedEventArgs } from 'nativescript-ui-sidedrawer' ; let drawerCallbacksModel ; export function onNavigatedTo ( args ) { let page = args . object ; drawerCallbacksModel = new DrawerCallbacksModel ( ) ; page . bindingContext = drawerCallbacksModel ; } export function pageLoaded ( args ) { } export function onDrawerClosed ( args ) { drawerCallbacksModel . onDrawerClosed ( args ) ; } export function onDrawerClosing ( args ) { drawerCallbacksModel . onDrawerClosing ( args ) ; } export function onDrawerOpened ( args ) { drawerCallbacksModel . onDrawerOpened ( args ) ; } export function onDrawerOpening ( args ) { drawerCallbacksModel . onDrawerOpening ( args ) ; } export function onDrawerPan ( args ) { drawerCallbacksModel . onDrawerPan ( args ) ; }