Skip to content

This library allows you to use native Haxe functions through Java-style one-method-interface wrappers.

License

Notifications You must be signed in to change notification settings

Boltmade/haxe-interface-handlers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Haxe Interface Handlers

This module lets you use HaXe closures easily with native Java APIs. Example:

import com.boltmade.InterfaceHandlers.toHandler
import java.lang.Runnable;

class SomeClass {
  function something() {
    someJavaMethodTakes(toHandler(function(){
      trace("ran!");
    }, Runnable.run));
  }
}

About

This library allows you to use native Haxe functions through Java-style one-method-interface wrappers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages