001package gwt.material.design.jscore.client.api.media;
002
003/*
004 * Copyright 2016 Google Inc.
005 *
006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
007 * use this file except in compliance with the License. You may obtain a copy of
008 * the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
014 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
015 * License for the specific language governing permissions and limitations under
016 * the License.
017 */
018
019import gwt.material.design.jscore.client.api.promise.Promise;
020import jsinterop.annotations.JsMethod;
021import jsinterop.annotations.JsPackage;
022import jsinterop.annotations.JsType;
023
024@JsType(isNative = true, namespace = JsPackage.GLOBAL)
025public class MediaDevices {
026
027    @JsMethod
028    public native Promise getUserMedia();
029
030    @JsMethod
031    public native Promise getUserMedia(Constraints constraints);
032}