void putScreen(Context context) {
    Map<String, Object> screen = createMap();
    WindowManager manager = getSystemService(context, Context.WINDOW_SERVICE);
    Display display = manager.getDefaultDisplay();
    DisplayMetrics displayMetrics = new DisplayMetrics();
    display.getMetrics(displayMetrics);
    screen.put(SCREEN_DENSITY_KEY, displayMetrics.density);
    screen.put(SCREEN_HEIGHT_KEY, displayMetrics.heightPixels);
    screen.put(SCREEN_WIDTH_KEY, displayMetrics.widthPixels);
    put(SCREEN_KEY, screen);
  }
void putScreen ( Context context ) { Map < String , Object > screen = createMap ( ) ; WindowManager manager = getSystemService ( context , Context . WINDOW_SERVICE ) ; Display display = manager . getDefaultDisplay ( ) ; DisplayMetrics displayMetrics = new DisplayMetrics ( ) ; display . getMetrics ( displayMetrics ) ; screen . put ( SCREEN_DENSITY_KEY , displayMetrics . density ) ; screen . put ( SCREEN_HEIGHT_KEY , displayMetrics . heightPixels ) ; screen . put ( SCREEN_WIDTH_KEY , displayMetrics . widthPixels ) ; put ( SCREEN_KEY , screen ) ; }
Fill this instance with application info from the provided {@link Context}. No need to expose a
getter for this for bundled integrations (they'll automatically fill what they need
themselves).