Example usage for com.google.gwt.typedarrays.client JsArrayUtil unwrapArray

List of usage examples for com.google.gwt.typedarrays.client JsArrayUtil unwrapArray

Introduction

In this page you can find the example usage for com.google.gwt.typedarrays.client JsArrayUtil unwrapArray.

Prototype

public static String[] unwrapArray(JsArrayString jsArrayString) 

Source Link

Document

Converts a JsArrayString to a String[].

Usage

From source file:com.googlecode.gwtgl.binding.WebGLRenderingContext.java

License:Apache License

/**
 * Determines the extensions supported by the WebGL implementation.
 * //from   w  ww . ja v a2  s  .  c om
 * @return an array containing the names of the supported extensions.
 */
public String[] getSupportedExtensions() {
    try {
        return JsArrayUtil.unwrapArray(getSupportedExtensionsAsJsArray());
    } catch (Exception e) {
        return new String[0];
    }
}