com.samsung.android.sdk.look.smartclip

Interface SlookSmartClip.DataExtractionListener

  • Enclosing class:
    SlookSmartClip


    public static interface SlookSmartClip.DataExtractionListener
    The listener that is used to provide meta tags when SmartClip occur. If you want to provide additional meta tag to SmartClip then implement this interface.
    Since:
    1.0.0
    • Field Detail

      • EXTRACTION_DISCARD

        static final int EXTRACTION_DISCARD
        Initialize variable of EXTRACTION_DISCARD.
        See Also:
        Constant Field Values
      • EXTRACTION_DEFAULT

        static final int EXTRACTION_DEFAULT
        Initialize variable of EXTRACTION_DEFAULT.
        See Also:
        Constant Field Values
    • Method Detail

      • onExtractSmartClipData

        int onExtractSmartClipData(android.view.View view,
                                   SlookSmartClipDataElement resultElement,
                                   SlookSmartClipCroppedArea croppedArea)
        Called when a SmartClip needs to collect meta data from views. Extract smart clip data from this view and store the result to resultElement.
        Parameters:
        view - Target view to extract meta tag
        resultElement - A container of meta data which will store the meta data of view. You should store the meta data here.
        croppedArea - The cropped area by S-Pen.
        Returns:
        - Extraction result(Must be one of below values) EXTRACTION_DISCARD : The meta datas on "resultElement" will be discarded EXTRACTION_DEFAULT : The meta datas on "resultElement" will be collected to SmartClip
        Since:
        1.0.0