Tabnine Logo
UIDevice.getModel
Code IndexAdd Tabnine to your IDE (free)

How to use
getModel
method
in
org.robovm.apple.uikit.UIDevice

Best Java code snippets using org.robovm.apple.uikit.UIDevice.getModel (Showing top 3 results out of 315)

origin: libgdx/libgdx

void setupPeripherals () {
  //motionManager = new CMMotionManager();
  setupAccelerometer();
  setupCompass();
  UIDevice device = UIDevice.getCurrentDevice();
  if (device.getModel().equalsIgnoreCase("iphone")) hasVibrator = true;
  if (app.getIosVersion() >= 9){
    UIForceTouchCapability forceTouchCapability = UIScreen.getMainScreen().getTraitCollection().getForceTouchCapability();
    pressureSupported = forceTouchCapability == UIForceTouchCapability.Available;
  }
}
origin: libgdx/libgdx

void setupPeripherals () {
  //motionManager = new CMMotionManager();
  setupAccelerometer();
  setupCompass();
  UIDevice device = UIDevice.getCurrentDevice();
  if (device.getModel().equalsIgnoreCase("iphone")) hasVibrator = true;
  if (app.getIosVersion() >= 9){
    UIForceTouchCapability forceTouchCapability = UIScreen.getMainScreen().getTraitCollection().getForceTouchCapability();
    pressureSupported = forceTouchCapability == UIForceTouchCapability.Available;
  }
}
origin: com.badlogicgames.gdx/gdx-backend-robovm

void setupPeripherals () {
  //motionManager = new CMMotionManager();
  setupAccelerometer();
  setupCompass();
  UIDevice device = UIDevice.getCurrentDevice();
  if (device.getModel().equalsIgnoreCase("iphone")) hasVibrator = true;
  if (app.getIosVersion() >= 9){
    UIForceTouchCapability forceTouchCapability = UIScreen.getMainScreen().getTraitCollection().getForceTouchCapability();
    pressureSupported = forceTouchCapability == UIForceTouchCapability.Available;
  }
}
org.robovm.apple.uikitUIDevicegetModel

Popular methods of UIDevice

  • getCurrentDevice
  • getSystemVersion
  • getUserInterfaceIdiom
  • BatteryLevelDidChangeNotification
  • BatteryStateDidChangeNotification
  • OrientationDidChangeNotification
  • ProximityStateDidChangeNotification
  • getOrientation

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSupportFragmentManager (FragmentActivity)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JList (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now