1 /* 2 * Copyright (C) 2015 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.camera.device; 18 19 /** 20 * Provides a set of executable actions for a given camera device key. 21 * 22 * In the case of Camera2 API, this is the example signature: 23 * 24 * <pre><code> 25 * Provider implements CameraDeviceActionProvider<CameraDevice, String> 26 * </code></pre> 27 * 28 * @param <TDevice> The type of camera device the actions produce. 29 */ 30 public interface CameraDeviceActionProvider<TDevice> { 31 32 /** 33 * Return a new set of device and api specific actions for the given 34 * types. 35 */ get(CameraDeviceKey key)36 public SingleDeviceActions<TDevice> get(CameraDeviceKey key); 37 } 38