com.samsung.android.sdk.look.smartclip
Interface SlookSmartClipDataElement
-
public interface SlookSmartClipDataElement
Interface of SlookSmartClipDataElement. User can implements this interface for meta data of SmartClip SmartClipElement is a data set that contains metadata.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addTag(SlookSmartClipMetaTag metaTag)
Adds the metadata to element.SlookSmartClipMetaTagArray
getAllTag()
Get all meta tags.android.graphics.Rect
getMetaAreaRect()
Get the area of the meta data.SlookSmartClipMetaTagArray
getTag(java.lang.String tagType)
Get set of metadata which have given tagType.void
removeTag(java.lang.String tagType)
Remove meta tag which have same type of given tagType.void
setMetaAreaRect(android.graphics.Rect rect)
Set the area of meta data.
-
-
-
Method Detail
-
setMetaAreaRect
void setMetaAreaRect(android.graphics.Rect rect)
Set the area of meta data. The rect should use screen based coordinates.- Parameters:
rect
- area of view.- Since:
- 1.0.0
-
getMetaAreaRect
android.graphics.Rect getMetaAreaRect()
Get the area of the meta data. The default value is the rect of matched view.- Returns:
- Area of the meta data.
- Since:
- 1.0.0
-
addTag
void addTag(SlookSmartClipMetaTag metaTag)
Adds the metadata to element.- Parameters:
metaTag
- The meta tag object to add.- Since:
- 1.0.0
-
removeTag
void removeTag(java.lang.String tagType)
Remove meta tag which have same type of given tagType. If there is multiple meta tag which matched by tagType, whole meta tags will be removed.- Parameters:
tagType
- Tag type to remove the meta tag.- Since:
- 1.0.0
-
getTag
SlookSmartClipMetaTagArray getTag(java.lang.String tagType)
Get set of metadata which have given tagType. If there is no matched meta tag, it will return empty array.- Parameters:
tagType
- for setting tag.- Returns:
- Array of meta data. If there is no meta tag, it will return empty array.
- Since:
- 1.0.0
-
getAllTag
SlookSmartClipMetaTagArray getAllTag()
Get all meta tags. It is all meta tag data which is saved in SlookSmartClipDataElement. If there is no meta tag, it will return empty array.- Returns:
- The array list of SlookSmartClipMetaTag
- Since:
- 1.0.0
-
-