iZZiSwift

iZZiSwift

Learning by Sharing Swift Programing and more …

  • Swift Programming
    • Swift Language
    • i0S Swift Issue
  • Devices
  • MacOS
  • Python Programming
  • Kotlin Programming
  • Memo

Tag: java-15

Kotlin: How I can use callback in Kotlin?

February 1, 2021 Bellamy Joanne

Question or issue of Kotlin Programming: I have View and one CircleShape , which should show toast in this View. And I use it in main Activity. This is my interface

Continue Reading

Kotlin: Why do I have to return Unit.INSTANCE when implementing in Java a Kotlin function that returns a Unit?

January 17, 2021 Gelbero William

Question or issue of Kotlin Programming: If I have a Kotlin function

Continue Reading

Kotlin: access Kotlin companion object in Java

January 17, 2021 Dina Emily

Question or issue of Kotlin Programming: I convert one of my Java class to Kotlin and the class as below.

Continue Reading

Round Double to 1 decimal place kotlin: from 0.044999 to 0.1

January 17, 2021 Barnaby Elizabeth

Question or issue of Kotlin Programming: I have a Double variable that is 0.0449999 and I would like to round it to 1 decimal place 0.1 .

Continue Reading

Kotlin: Android vibrate is deprecated. use VibrationEffect in Android>= API 26

January 17, 2021 Anderson Tracy

Question or issue of Kotlin Programming: I am using Android’s VIBRATOR_SERVICE to give a haptic feedback for a button touch.

Continue Reading

Kotlin: How are coroutines implemented in JVM langs without JVM support?

January 17, 2021 Smith Oscar

Question or issue of Kotlin Programming: This question came up after reading the Loom proposal, which describes an approach of implementing coroutines in the Java programming language.

Continue Reading

Kotlin: Private constructor in Kotlin

January 17, 2021 Dallin Sophie

Question or issue of Kotlin Programming: In Java it’s possible to hide a class’ main constructor by making it private and then accessing it via a public static method inside that class:

Continue Reading

Kotlin: Use a lambda in place of a functional interface?

January 17, 2021 Ashby Isla

Question or issue of Kotlin Programming: In Java we can do this Events.handler(Handshake.class, hs -> out.println(hs));

Continue Reading

Kotlin: Private getter and public setter for a Kotlin property

January 17, 2021 Darton Poppy

Question or issue of Kotlin Programming: How to make a property in Kotlin that has a private getter (or just do not have it) but has a public setter?

Continue Reading

Kotlin: Why and when to use @JvmStatic with companion objects?

January 17, 2021 Abreonia Ng

Question or issue of Kotlin Programming: I’m trying to understand the difference between using/not using @JvmStatic, and when I should use either one.

Continue Reading

Posts navigation

Older posts

Same Catagory Posts

    iZZiSwift | Developed by iZZi Team from 2017