com.samsung.android.sdk.look.smartclip

Class SlookSmartClip

  • java.lang.Object
    • com.samsung.android.sdk.look.smartclip.SlookSmartClip


  • public final class SlookSmartClip
    extends java.lang.Object
    This class is a Util class that provide Add metadata, delete and registration of the listener.
    • Constructor Detail

      • SlookSmartClip

        public SlookSmartClip(android.view.View view)
        The constructor of SmartClip class. it needs view object.
        Parameters:
        view - - The target view of meta tag operations
        Since:
        1.0.0
    • Method Detail

      • addMetaTag

        public void addMetaTag(SlookSmartClipMetaTag metaTag)
        Add the metadata to view.
        Parameters:
        metaTag - The meta tag object to add
        Since:
        1.0.0
      • removeMetaTag

        public void removeMetaTag(java.lang.String tagType)
        Remove the metadata of tagType to view specific.
        Parameters:
        tagType - The type of meta data. It is defined on SlookSmartClipMetaTag class.
        Since:
        1.0.0
        See Also:
        addMetaTag(SlookSmartClipMetaTag metaTag) , removeMetaTag(String tagType) , clearAllMetaTag()
      • clearAllMetaTag

        public void clearAllMetaTag()
        Remove all metadata to view specific.
        Since:
        1.0.0
      • setDataExtractionListener

        public void setDataExtractionListener(SlookSmartClip.DataExtractionListener listener)
        Set a listener of SmartClip to view. When the SmartClip collects meta data from view, the listener will be called.
        Parameters:
        listener - A listener to provide meta tags
        Since:
        1.0.0
      • extractDefaultSmartClipData

        public int extractDefaultSmartClipData(SlookSmartClipDataElement resultElement,
                                               SlookSmartClipCroppedArea croppedArea)
        Extract default meta data from view.
        Parameters:
        resultElement - A meta data storage. Default meta data will be stored here.
        croppedArea - Cropped area.
        Returns:
        Extraction result
        Since:
        1.0.0