public final class SCamera extends Object implements com.samsung.android.sdk.SsdkInterface
Modifier and Type | Field and Description |
---|---|
static int |
SCAMERA_FILTER
A set of
filter API is available. |
static int |
SCAMERA_IMAGE
Deprecated.
|
static int |
SCAMERA_PROCESSOR
A set of
processor API is available. |
Constructor and Description |
---|
SCamera() |
Modifier and Type | Method and Description |
---|---|
SCameraFilterManager |
getSCameraFilterManager()
Returns an instance of
SCameraFilterManager for querying and creating a SCameraFilter . |
SCameraManager |
getSCameraManager()
Deprecated.
|
SCameraProcessorManager |
getSCameraProcessorManager()
Returns an instance of
SCameraProcessorManager for querying and creating a SCameraProcessor . |
int |
getVersionCode()
Return the version code of the SCamera SDK package.
|
String |
getVersionName()
Return the version name of the SCamera SDK package.
|
void |
initialize(Context context)
Initializes an instance of the SCamera SDK package.
|
boolean |
isFeatureEnabled(int type)
Checks whether the requested feature is supported.
|
public static final int SCAMERA_FILTER
filter
API is available.public static final int SCAMERA_PROCESSOR
processor
API is available.@Deprecated public static final int SCAMERA_IMAGE
image
API is available.public void initialize(Context context) throws SsdkUnsupportedException
context
- The Context instance of your application.SsdkUnsupportedException
- if SDK is not supported on the device.IllegalArgumentException
- if context was null or not valid.public boolean isFeatureEnabled(int type)
type
- The identifier of the feature. One of SCAMERA_FILTER
, SCAMERA_PROCESSOR
or SCAMERA_IMAGE
.true
if the device supports the feature, false
otherwise.IllegalStateException
- if initialize(Context)
is not called.IllegalArgumentException
- if given type is invalid.public int getVersionCode()
public String getVersionName()
@Deprecated public SCameraManager getSCameraManager()
SCameraManager
for detecting, characterizing, and connecting to SCameraDevice
.SCameraManager
.IllegalStateException
- if initialize(Context)
is not called.public SCameraFilterManager getSCameraFilterManager()
SCameraFilterManager
for querying and creating a SCameraFilter
.SCameraFilterManager
.IllegalStateException
- if initialize(Context)
is not called.public SCameraProcessorManager getSCameraProcessorManager()
SCameraProcessorManager
for querying and creating a SCameraProcessor
.
The following permission has to be specified in the androidManifest.xml to use camera processor manager.
<uses-permission android:name="android.permission.CAMERA"/>
SCameraProcessorManager
.IllegalStateException
- if initialize(Context)
is not called.SecurityException
- Thrown if the required permission is not included in the AndroidManifest.xml file.Copyright © Samsung Electronics, Co., Ltd. All rights reserved.