org.appcelerator.kroll.annotations
Annotation Type Kroll.setProperty


@Documented
@Retention
@Target
public static @interface Kroll.setProperty

Declares a method as a property setter of this Kroll.proxy or Kroll.module.

Setter methods must have at least one argument: The value to set. Optionally, setter methods may also have a KrollInvocation object as the first argument (with the value as the second), and may also have as many optional arguments as necessary after the value when exposed as a Kroll.method.

See Also:
name(), retain(), runOnUiThread(), KrollInvocation, Kroll.argument.optional(), @Kroll.method


Optional Element Summary
 String name
          The name of this property in the API.
 

name

public abstract String name
The name of this property in the API.

Default Value:
The method name stripped of "set", and lower-camel-cased or the method name itself.
Default:
"__default_name__"


Copyright © 2010-2012 Appcelerator, Inc. Licensed under the Apache License 2.0