com.samsung.android.sdk.accessoryfiletransfer

Class SAft

  • java.lang.Object
    • com.samsung.android.sdk.accessoryfiletransfer.SAft
  • All Implemented Interfaces:
    com.samsung.android.sdk.SsdkInterface


    public class SAft
    extends java.lang.Object
    implements com.samsung.android.sdk.SsdkInterface
    SAft is the entry class that provides access to the Samsung Accessory File Transfer SDK. This class provides methods for initializing the Samsung Accessory File Transfer SDK and for checking whether the Accessory File Transfer feature is supported.

    All Samsung SDKs, including the Samsung Accessory SDK, provide a uniform interface for initialization, checking whether features are enabled, and getting the SDK version info. The application must call initialize(Context) to initialize the Samsung Accessory SDK before using it.

    Developer Guides

    For more information about using Accessory File Transfer, please refer to the Accessory Programming Guide.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DEVICE_ACCESSORY
      Accessory feature ID
    • Constructor Summary

      Constructors 
      Constructor and Description
      SAft()
      Creates an SAft instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void initialize(android.content.Context context)
      Initializes an instance of the Samsung Accessory File Transfer SDK.
      boolean isFeatureEnabled(int type)
      Returns true if the Accessory File Transfer feature on the device is enabled.
    • Field Detail

      • DEVICE_ACCESSORY

        public static final int DEVICE_ACCESSORY
        Accessory feature ID
        Since:
        2.0.19
        See Also:
        Constant Field Values
    • Constructor Detail

      • SAft

        public SAft()
        Creates an SAft instance
        Since:
        2.0.19
    • Method Detail

      • initialize

        public void initialize(android.content.Context context)
                        throws SsdkUnsupportedException
        Initializes an instance of the Samsung Accessory File Transfer SDK.
        Parameters:
        context - The Context for your application.
        Throws:
        SsdkUnsupportedException - Thrown if the device was not made by Samsung, doesn't support the feature, or the SDK version is not matched.
        java.lang.IllegalArgumentException - Thrown if the Context passed is null or invalid.
        Since:
        2.0.19
      • isFeatureEnabled

        public boolean isFeatureEnabled(int type)
        Returns true if the Accessory File Transfer feature on the device is enabled.
        Parameters:
        type - The feature ID(must be DEVICE_ACCESSORY).
        Returns:
        true if the Accessory File Transfer feature is available on the device, else false
        Throws:
        java.lang.IllegalArgumentException - Thrown if the feature ID passed is not valid.
        Since:
        2.0.19