Example usage for org.apache.cordova PluginManager onConfigurationChanged

List of usage examples for org.apache.cordova PluginManager onConfigurationChanged

Introduction

In this page you can find the example usage for org.apache.cordova PluginManager onConfigurationChanged.

Prototype

public void onConfigurationChanged(Configuration newConfig) 

Source Link

Document

Called by the system when the device configuration changes while your activity is running.

Usage

From source file:com.example.administrator.myapplication.fragment.CordovaFragment2.java

License:Apache License

/**
 * Called by the system when the device configuration changes while your activity is running.
 *
 * @param newConfig      The new device configuration
 *///from w  w  w.java  2  s.  c  om
@Override
public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    if (this.appView == null) {
        return;
    }
    PluginManager pm = this.appView.getPluginManager();
    if (pm != null) {
        pm.onConfigurationChanged(newConfig);
    }
}

From source file:io.syng.fragment.WebViewFragment.java

License:Mozilla Public License

@Override
public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    if (this.webView == null) {
        return;//from  ww w .j a  va2 s. c  o m
    }
    PluginManager pm = this.webView.getPluginManager();
    if (pm != null) {
        pm.onConfigurationChanged(newConfig);
    }
}