How to get current platform(base/mobile) in SugarCRM logic hook?

In my sugarcrm logic hook i wanted to know the if the user is using mobile app or desktop browser. Is there any function available to get current user platform?