C# Class VoiceCamera.CameraFragment

Inheritance: Fragment, View.IOnClickListener
Datei anzeigen Open project: jamesmontemagno/MarshmallowSamples Class Usage Examples

Private Properties

Property Type Description
ConfigureTransform void
OpenCamera void
SetUpCaptureRequestBuilder void
ShouldUseCamera bool
StartPreview void
StartVoiceTimer void
StartVoiceTrigger void
TakePicture void
UpdatePreview void

Public Methods

Method Description
NewInstance ( ) : CameraFragment
OnClick ( Android.Views.View v ) : void
OnCreate ( Bundle savedInstanceState ) : void
OnCreateView ( Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Bundle savedInstanceState ) : Android.Views.View
OnPause ( ) : void
OnResume ( ) : void
OnViewCreated ( Android.Views.View view, Bundle savedInstanceState ) : void

Private Methods

Method Description
ConfigureTransform ( int viewWidth, int viewHeight ) : void

Configures the necessary transformation to mTextureView. This method should be called after the camera preciew size is determined in openCamera, and also the size of mTextureView is fixed

OpenCamera ( ) : void
SetUpCaptureRequestBuilder ( CaptureRequest builder ) : void

Sets up capture request builder.

ShouldUseCamera ( int lensFacing ) : bool
StartPreview ( ) : void

Starts the camera previe

StartVoiceTimer ( ) : void
StartVoiceTrigger ( ) : void
TakePicture ( ) : void

Takes a picture.

UpdatePreview ( ) : void

Updates the camera preview, StartPreview() needs to be called in advance

Method Details

NewInstance() public static method

public static NewInstance ( ) : CameraFragment
return CameraFragment

OnClick() public method

public OnClick ( Android.Views.View v ) : void
v Android.Views.View
return void

OnCreate() public method

public OnCreate ( Bundle savedInstanceState ) : void
savedInstanceState Bundle
return void

OnCreateView() public method

public OnCreateView ( Android.Views.LayoutInflater inflater, Android.Views.ViewGroup container, Bundle savedInstanceState ) : Android.Views.View
inflater Android.Views.LayoutInflater
container Android.Views.ViewGroup
savedInstanceState Bundle
return Android.Views.View

OnPause() public method

public OnPause ( ) : void
return void

OnResume() public method

public OnResume ( ) : void
return void

OnViewCreated() public method

public OnViewCreated ( Android.Views.View view, Bundle savedInstanceState ) : void
view Android.Views.View
savedInstanceState Bundle
return void