Package com.google.j2objc.annotations
Annotation Type SwiftName
@Documented
@Target({TYPE,METHOD,CONSTRUCTOR,PACKAGE})
@Retention(CLASS)
public @interface SwiftName
Annotation that specifies what the Swift class, protocol, method, constructor or package
declaration should be when translated.
When the flag is applied to the package or type level it will automatically apply names to methods.
For packages add the annotation to the package declaration in a package-info.java file to apply Swift annotations throughout the package.
For classes specify the desired Swift class name for the translated type or nothing to use the java name.
For methods specify the desired Swift selector for the translated method. The Swift method signature is derived based on some patterns, and it is not converted automatically when it is not recognized.
@SwiftName("setDate(year:month:day:)")
public void setDate(int year, int month, int day);- Author:
- Justin Anderson
-
Optional Element Summary
Optional Elements
-
Element Details
-
value
-