public class Srn extends Object implements com.samsung.android.sdk.SsdkInterface
Constructor and Description |
---|
Srn()
Creates a Srn instance
|
Modifier and Type | Method and Description |
---|---|
int |
getVersionCode()
Returns the version number of the Rich Notification package.
|
String |
getVersionName()
Returns the version name of the Rich Notification package.
|
void |
initialize(Context context)
Initializes an instance of the Accessory package.
|
boolean |
isFeatureEnabled(int type)
Checks if the Rich Notification package feature is available on the device.
|
public void initialize(Context context) throws SsdkUnsupportedException
context
- The Context for of the application.NullPointerException
- If context is null.SsdkUnsupportedException
- If the device is not Samsung or doesn't support the feature, or the SDK version is not matched.SecurityException
- If the required permission is not included in the AndroidManifest.xml file. This does not occur in other companies or non-Samsung devices.public boolean isFeatureEnabled(int type)
type
- The feature ID.public int getVersionCode()
public String getVersionName()
Copyright © Samsung Electronics, Co., Ltd. All rights reserved.