• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
17 package com.android.camera;
18 
19 import android.content.Intent;
20 import android.content.res.Configuration;
21 import android.view.KeyEvent;
22 import android.view.MotionEvent;
23 import android.view.View;
24 
25 public interface CameraModule {
26 
init(CameraActivity activity, View frame, boolean reuseScreenNail)27     public void init(CameraActivity activity, View frame, boolean reuseScreenNail);
28 
onFullScreenChanged(boolean full)29     public void onFullScreenChanged(boolean full);
30 
onPauseBeforeSuper()31     public void onPauseBeforeSuper();
32 
onPauseAfterSuper()33     public void onPauseAfterSuper();
34 
onResumeBeforeSuper()35     public void onResumeBeforeSuper();
36 
onResumeAfterSuper()37     public void onResumeAfterSuper();
38 
onConfigurationChanged(Configuration config)39     public void onConfigurationChanged(Configuration config);
40 
onStop()41     public void onStop();
42 
installIntentFilter()43     public void installIntentFilter();
44 
onActivityResult(int requestCode, int resultCode, Intent data)45     public void onActivityResult(int requestCode, int resultCode, Intent data);
46 
onBackPressed()47     public boolean onBackPressed();
48 
onKeyDown(int keyCode, KeyEvent event)49     public boolean onKeyDown(int keyCode, KeyEvent event);
50 
onKeyUp(int keyCode, KeyEvent event)51     public boolean onKeyUp(int keyCode, KeyEvent event);
52 
onSingleTapUp(View view, int x, int y)53     public void onSingleTapUp(View view, int x, int y);
54 
dispatchTouchEvent(MotionEvent m)55     public boolean dispatchTouchEvent(MotionEvent m);
56 
onPreviewTextureCopied()57     public void onPreviewTextureCopied();
58 
onCaptureTextureCopied()59     public void onCaptureTextureCopied();
60 
onUserInteraction()61     public void onUserInteraction();
62 
updateStorageHintOnResume()63     public boolean updateStorageHintOnResume();
64 
updateCameraAppView()65     public void updateCameraAppView();
66 
collapseCameraControls()67     public boolean collapseCameraControls();
68 
needsSwitcher()69     public boolean needsSwitcher();
70 
onOrientationChanged(int orientation)71     public void onOrientationChanged(int orientation);
72 
onShowSwitcherPopup()73     public void onShowSwitcherPopup();
74 
75 }
76