Package 

Class AnnotationUtilKt

    • 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 shown
        centerCrop - true by default, will crop the image
        fit - 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