Example usage for org.apache.cordova Whitelist addWhiteListEntry

List of usage examples for org.apache.cordova Whitelist addWhiteListEntry

Introduction

In this page you can find the example usage for org.apache.cordova Whitelist addWhiteListEntry.

Prototype

public void addWhiteListEntry(String origin, boolean subdomains) 

Source Link

Usage

From source file:ca.carleton.gcrc.n2android_mobile1.cordova.WhitelistPlugin.java

License:Apache License

public WhitelistPlugin(Whitelist allowedNavigations, Whitelist allowedIntents, Whitelist allowedRequests) {
    if (allowedRequests == null) {
        allowedRequests = new Whitelist();
        allowedRequests.addWhiteListEntry("file:///*", false);
        allowedRequests.addWhiteListEntry("data:*", false);
    }//from   w  w w  . j  ava  2s .  c o m
    this.allowedNavigations = allowedNavigations;
    this.allowedIntents = allowedIntents;
    this.allowedRequests = allowedRequests;
}