SEL

public class SEL extends StructObject

Objective-C SEL class.

Constructors

SEL

protected SEL(Pointer peer)

Constructs a selector from a pointer.

Parameters:
  • peer – Selector’s pointer

SEL

public SEL(String name)

Constructs a selector by its name.

Parameters:
  • name – Selector’s name

SEL

public SEL(Method method)

Constructs a selector from a method.

Works only with native methods marked with Selector annotation.

Parameters:
  • method – Method marked with Selector annotation

Methods

getSelectorString

static String getSelectorString(Method method)

Retrieves selector name from a native method with Selector annotation.

Parameters:
  • method – Method marked with Selector annotation
Returns:

Selector name