public boolean detectBlackBerry ( ) { if ( userAgent . indexOf ( deviceBB ) != - 1 || httpAccept . indexOf ( vndRIM ) != - 1 ) return true ; if ( detectBlackBerry10Phone ( ) ) return true ; return false ; }
Detects if the current browser is any BlackBerry . Includes BB10 OS but excludes the PlayBook .