-
public final class AnnotationUtilKt
-
-
Field Summary
Fields Modifier and Type Field Description public final static String
TYPE_PERCENTAGE
public final static String
TYPE_SECONDS
public final static String
TYPE_INFINITE
-
Method Summary
Modifier and Type Method Description final static Double
toMillis(Time $self, Long videoDuration)
final static Unit
load(ImageView $self, String url, Boolean centerCrop, Boolean fit)
goToLik extension function that loads an image inside the ImageView final static Unit
goToLik(String $self, Context context)
goToLik extension function that executes an Intent to open an URL final static Long
getAnnotationTime(String $self, Map<String, Time> annotationMap)
getAnnotationTime return the time in milliseconds depending if the annotation has and id to jump to another annotation or an specific time final static Map<String, Time>
getTimeMap(List<Annotation> $self)
getTimeMap is an extension function that return a Map from the annotation list with the id and the startTime only final static Project
getProject(List<Annotation> $self)
Return the project data from an annotation final static Boolean
isPreconditionEnabled(Annotation $self, List<String> preconditionList)
-
-
Method Detail
-
load
final static Unit load(ImageView $self, String url, Boolean centerCrop, Boolean fit)
goToLik extension function that loads an image inside the ImageView
- Parameters:
url
- is the location of the image to be showncenterCrop
- true by default, will crop the imagefit
- true by default, will fit the image to the Imageview
-
goToLik
final static Unit goToLik(String $self, Context context)
goToLik extension function that executes an Intent to open an URL
- Parameters:
context
- is the context of the application
-
getAnnotationTime
final static Long getAnnotationTime(String $self, Map<String, Time> annotationMap)
getAnnotationTime return the time in milliseconds depending if the annotation has and id to jump to another annotation or an specific time
- Parameters:
annotationMap
- is Map of annotation (id, StartTime)
-
getTimeMap
final static Map<String, Time> getTimeMap(List<Annotation> $self)
getTimeMap is an extension function that return a Map from the annotation list with the id and the startTime only
-
getProject
final static Project getProject(List<Annotation> $self)
Return the project data from an annotation
-
isPreconditionEnabled
final static Boolean isPreconditionEnabled(Annotation $self, List<String> preconditionList)
-
-
-
-