blob: bcfe98d65921c9daeb3d149af77482cce4cca76a [file] [log] [blame]
Michael Kolb8872c232013-01-29 10:33:22 -08001/*
2 * Copyright (C) 2012 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
17package com.android.camera;
18
19import android.content.Intent;
20import android.content.res.Configuration;
21import android.view.KeyEvent;
22import android.view.MotionEvent;
23import android.view.View;
24
25public interface CameraModule {
26
Doris Liu6432cd62013-06-13 17:20:31 -070027 public void init(CameraActivity activity, View frame);
Michael Kolb8872c232013-01-29 10:33:22 -080028
Doris Liu6432cd62013-06-13 17:20:31 -070029 public void onSwitchMode(boolean toCamera);
Michael Kolb8872c232013-01-29 10:33:22 -080030
31 public void onPauseBeforeSuper();
32
33 public void onPauseAfterSuper();
34
35 public void onResumeBeforeSuper();
36
37 public void onResumeAfterSuper();
38
39 public void onConfigurationChanged(Configuration config);
40
41 public void onStop();
42
43 public void installIntentFilter();
44
45 public void onActivityResult(int requestCode, int resultCode, Intent data);
46
47 public boolean onBackPressed();
48
49 public boolean onKeyDown(int keyCode, KeyEvent event);
50
51 public boolean onKeyUp(int keyCode, KeyEvent event);
52
53 public void onSingleTapUp(View view, int x, int y);
54
Michael Kolb8872c232013-01-29 10:33:22 -080055 public void onPreviewTextureCopied();
56
57 public void onCaptureTextureCopied();
58
59 public void onUserInteraction();
60
61 public boolean updateStorageHintOnResume();
62
63 public void updateCameraAppView();
64
Michael Kolb8872c232013-01-29 10:33:22 -080065 public void onOrientationChanged(int orientation);
66
67 public void onShowSwitcherPopup();
68
Angus Kong86d36312013-01-31 18:22:44 -080069 public void onMediaSaveServiceConnected(MediaSaveService s);
Michael Kolb8872c232013-01-29 10:33:22 -080070}