Closed scifinder closed 6 years ago
Hi! I can not translate this line into Java. https://github.com/Fotoapparat/Fotoapparat/blob/5abcbf7e54dc98f618a5b6cd951dcc8f0ff45206/sample/src/main/java/io/fotoapparat/sample/MainActivity.kt#L158 capabilities.getFlashModes().contains(new Flash.On()) generate error "On() has private access"
capabilities.getFlashModes().contains(new Flash.On())
Flash.On.INSTANCE?
Flash.On.INSTANCE
Yes, it works! =) Thank you! =)
Hi! I can not translate this line into Java. https://github.com/Fotoapparat/Fotoapparat/blob/5abcbf7e54dc98f618a5b6cd951dcc8f0ff45206/sample/src/main/java/io/fotoapparat/sample/MainActivity.kt#L158
capabilities.getFlashModes().contains(new Flash.On())
generate error "On() has private access"