Skip to content

Commit d4755df

Browse files
committed
Add android.nfc.* generated sources
1 parent 39a44f5 commit d4755df

32 files changed

Lines changed: 2636 additions & 0 deletions
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidOS
3+
import SwiftJava
4+
import SwiftJavaJNICore
5+
6+
@JavaClass("android.nfc.AvailableNfcAntenna", implements: Parcelable.self)
7+
open class AvailableNfcAntenna: JavaObject {
8+
@JavaMethod
9+
@_nonoverride public convenience init(_ arg0: Int32, _ arg1: Int32, environment: JNIEnvironment? = nil)
10+
11+
/// Java method `getLocationX`.
12+
///
13+
/// ### Java method signature
14+
/// ```java
15+
/// public int android.nfc.AvailableNfcAntenna.getLocationX()
16+
/// ```
17+
@JavaMethod
18+
open func getLocationX() -> Int32
19+
20+
/// Java method `getLocationY`.
21+
///
22+
/// ### Java method signature
23+
/// ```java
24+
/// public int android.nfc.AvailableNfcAntenna.getLocationY()
25+
/// ```
26+
@JavaMethod
27+
open func getLocationY() -> Int32
28+
29+
/// Java method `describeContents`.
30+
///
31+
/// ### Java method signature
32+
/// ```java
33+
/// public int android.nfc.AvailableNfcAntenna.describeContents()
34+
/// ```
35+
@JavaMethod
36+
open func describeContents() -> Int32
37+
38+
/// Java method `writeToParcel`.
39+
///
40+
/// ### Java method signature
41+
/// ```java
42+
/// public void android.nfc.AvailableNfcAntenna.writeToParcel(android.os.Parcel,int)
43+
/// ```
44+
@JavaMethod
45+
open func writeToParcel(_ arg0: Parcel?, _ arg1: Int32)
46+
47+
/// Java method `equals`.
48+
///
49+
/// ### Java method signature
50+
/// ```java
51+
/// public boolean android.nfc.AvailableNfcAntenna.equals(java.lang.Object)
52+
/// ```
53+
@JavaMethod
54+
open override func equals(_ arg0: JavaObject?) -> Bool
55+
56+
/// Java method `toString`.
57+
///
58+
/// ### Java method signature
59+
/// ```java
60+
/// public java.lang.String android.nfc.AvailableNfcAntenna.toString()
61+
/// ```
62+
@JavaMethod
63+
open override func toString() -> String
64+
65+
/// Java method `hashCode`.
66+
///
67+
/// ### Java method signature
68+
/// ```java
69+
/// public int android.nfc.AvailableNfcAntenna.hashCode()
70+
/// ```
71+
@JavaMethod
72+
open override func hashCode() -> Int32
73+
}
74+
extension JavaClass<AvailableNfcAntenna> {
75+
@JavaStaticField(isFinal: true)
76+
public var CREATOR: Parcelable.Creator<AvailableNfcAntenna>!
77+
}
Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidApp
3+
import AndroidContent
4+
import SwiftJava
5+
import SwiftJavaJNICore
6+
7+
@JavaClass("android.nfc.cardemulation.CardEmulation")
8+
open class CardEmulation: JavaObject {
9+
/// Java method `setShouldDefaultToObserveModeForService`.
10+
///
11+
/// ### Java method signature
12+
/// ```java
13+
/// public boolean android.nfc.cardemulation.CardEmulation.setShouldDefaultToObserveModeForService(android.content.ComponentName,boolean)
14+
/// ```
15+
@JavaMethod
16+
open func setShouldDefaultToObserveModeForService(_ arg0: ComponentName?, _ arg1: Bool) -> Bool
17+
18+
/// Java method `registerPollingLoopFilterForService`.
19+
///
20+
/// ### Java method signature
21+
/// ```java
22+
/// public boolean android.nfc.cardemulation.CardEmulation.registerPollingLoopFilterForService(android.content.ComponentName,java.lang.String,boolean)
23+
/// ```
24+
@JavaMethod
25+
open func registerPollingLoopFilterForService(_ arg0: ComponentName?, _ arg1: String, _ arg2: Bool) -> Bool
26+
27+
/// Java method `registerPollingLoopPatternFilterForService`.
28+
///
29+
/// ### Java method signature
30+
/// ```java
31+
/// public boolean android.nfc.cardemulation.CardEmulation.registerPollingLoopPatternFilterForService(android.content.ComponentName,java.lang.String,boolean)
32+
/// ```
33+
@JavaMethod
34+
open func registerPollingLoopPatternFilterForService(_ arg0: ComponentName?, _ arg1: String, _ arg2: Bool) -> Bool
35+
36+
/// Java method `removePollingLoopPatternFilterForService`.
37+
///
38+
/// ### Java method signature
39+
/// ```java
40+
/// public boolean android.nfc.cardemulation.CardEmulation.removePollingLoopPatternFilterForService(android.content.ComponentName,java.lang.String)
41+
/// ```
42+
@JavaMethod
43+
open func removePollingLoopPatternFilterForService(_ arg0: ComponentName?, _ arg1: String) -> Bool
44+
45+
/// Java method `getRouteDestinationForPreferredPaymentService`.
46+
///
47+
/// ### Java method signature
48+
/// ```java
49+
/// public java.lang.String android.nfc.cardemulation.CardEmulation.getRouteDestinationForPreferredPaymentService()
50+
/// ```
51+
@JavaMethod
52+
open func getRouteDestinationForPreferredPaymentService() -> String
53+
54+
/// Java method `isDefaultServiceForCategory`.
55+
///
56+
/// ### Java method signature
57+
/// ```java
58+
/// public boolean android.nfc.cardemulation.CardEmulation.isDefaultServiceForCategory(android.content.ComponentName,java.lang.String)
59+
/// ```
60+
@JavaMethod
61+
open func isDefaultServiceForCategory(_ arg0: ComponentName?, _ arg1: String) -> Bool
62+
63+
/// Java method `isDefaultServiceForAid`.
64+
///
65+
/// ### Java method signature
66+
/// ```java
67+
/// public boolean android.nfc.cardemulation.CardEmulation.isDefaultServiceForAid(android.content.ComponentName,java.lang.String)
68+
/// ```
69+
@JavaMethod
70+
open func isDefaultServiceForAid(_ arg0: ComponentName?, _ arg1: String) -> Bool
71+
72+
/// Java method `categoryAllowsForegroundPreference`.
73+
///
74+
/// ### Java method signature
75+
/// ```java
76+
/// public boolean android.nfc.cardemulation.CardEmulation.categoryAllowsForegroundPreference(java.lang.String)
77+
/// ```
78+
@JavaMethod
79+
open func categoryAllowsForegroundPreference(_ arg0: String) -> Bool
80+
81+
/// Java method `getSelectionModeForCategory`.
82+
///
83+
/// ### Java method signature
84+
/// ```java
85+
/// public int android.nfc.cardemulation.CardEmulation.getSelectionModeForCategory(java.lang.String)
86+
/// ```
87+
@JavaMethod
88+
open func getSelectionModeForCategory(_ arg0: String) -> Int32
89+
90+
/// Java method `removePollingLoopFilterForService`.
91+
///
92+
/// ### Java method signature
93+
/// ```java
94+
/// public boolean android.nfc.cardemulation.CardEmulation.removePollingLoopFilterForService(android.content.ComponentName,java.lang.String)
95+
/// ```
96+
@JavaMethod
97+
open func removePollingLoopFilterForService(_ arg0: ComponentName?, _ arg1: String) -> Bool
98+
99+
/// Java method `unsetOffHostForService`.
100+
///
101+
/// ### Java method signature
102+
/// ```java
103+
/// public boolean android.nfc.cardemulation.CardEmulation.unsetOffHostForService(android.content.ComponentName)
104+
/// ```
105+
@JavaMethod
106+
open func unsetOffHostForService(_ arg0: ComponentName?) -> Bool
107+
108+
/// Java method `setOffHostForService`.
109+
///
110+
/// ### Java method signature
111+
/// ```java
112+
/// public boolean android.nfc.cardemulation.CardEmulation.setOffHostForService(android.content.ComponentName,java.lang.String)
113+
/// ```
114+
@JavaMethod
115+
open func setOffHostForService(_ arg0: ComponentName?, _ arg1: String) -> Bool
116+
117+
/// Java method `removeAidsForService`.
118+
///
119+
/// ### Java method signature
120+
/// ```java
121+
/// public boolean android.nfc.cardemulation.CardEmulation.removeAidsForService(android.content.ComponentName,java.lang.String)
122+
/// ```
123+
@JavaMethod
124+
open func removeAidsForService(_ arg0: ComponentName?, _ arg1: String) -> Bool
125+
126+
/// Java method `setPreferredService`.
127+
///
128+
/// ### Java method signature
129+
/// ```java
130+
/// public boolean android.nfc.cardemulation.CardEmulation.setPreferredService(android.app.Activity,android.content.ComponentName)
131+
/// ```
132+
@JavaMethod
133+
open func setPreferredService(_ arg0: Activity?, _ arg1: ComponentName?) -> Bool
134+
135+
/// Java method `unsetPreferredService`.
136+
///
137+
/// ### Java method signature
138+
/// ```java
139+
/// public boolean android.nfc.cardemulation.CardEmulation.unsetPreferredService(android.app.Activity)
140+
/// ```
141+
@JavaMethod
142+
open func unsetPreferredService(_ arg0: Activity?) -> Bool
143+
144+
/// Java method `supportsAidPrefixRegistration`.
145+
///
146+
/// ### Java method signature
147+
/// ```java
148+
/// public boolean android.nfc.cardemulation.CardEmulation.supportsAidPrefixRegistration()
149+
/// ```
150+
@JavaMethod
151+
open func supportsAidPrefixRegistration() -> Bool
152+
}
153+
extension JavaClass<CardEmulation> {
154+
@available(*, deprecated)
155+
@JavaStaticField(isFinal: true)
156+
public var ACTION_CHANGE_DEFAULT: String
157+
158+
@JavaStaticField(isFinal: true)
159+
public var CATEGORY_OTHER: String
160+
161+
@JavaStaticField(isFinal: true)
162+
public var CATEGORY_PAYMENT: String
163+
164+
@JavaStaticField(isFinal: true)
165+
public var EXTRA_CATEGORY: String
166+
167+
@JavaStaticField(isFinal: true)
168+
public var EXTRA_SERVICE_COMPONENT: String
169+
170+
@JavaStaticField(isFinal: true)
171+
public var SELECTION_MODE_ALWAYS_ASK: Int32
172+
173+
@JavaStaticField(isFinal: true)
174+
public var SELECTION_MODE_ASK_IF_CONFLICT: Int32
175+
176+
@JavaStaticField(isFinal: true)
177+
public var SELECTION_MODE_PREFER_DEFAULT: Int32
178+
179+
/// Java method `getInstance`.
180+
///
181+
/// ### Java method signature
182+
/// ```java
183+
/// public static synchronized android.nfc.cardemulation.CardEmulation android.nfc.cardemulation.CardEmulation.getInstance(android.nfc.NfcAdapter)
184+
/// ```
185+
@JavaStaticMethod
186+
public func getInstance(_ arg0: NfcAdapter?) -> CardEmulation!
187+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import SwiftJava
3+
import SwiftJavaJNICore
4+
5+
@JavaClass("android.nfc.FormatException")
6+
open class FormatException: JavaObject {
7+
@JavaMethod
8+
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
9+
10+
@JavaMethod
11+
@_nonoverride public convenience init(_ arg0: String, environment: JNIEnvironment? = nil)
12+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidApp
3+
import AndroidContent
4+
import AndroidOS
5+
import SwiftJava
6+
import SwiftJavaJNICore
7+
8+
@JavaClass("android.nfc.cardemulation.HostApduService")
9+
open class HostApduService: Service {
10+
@JavaMethod
11+
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
12+
13+
/// Java method `onBind`.
14+
///
15+
/// ### Java method signature
16+
/// ```java
17+
/// public final android.os.IBinder android.nfc.cardemulation.HostApduService.onBind(android.content.Intent)
18+
/// ```
19+
@JavaMethod
20+
open override func onBind(_ arg0: Intent?) -> IBinder!
21+
22+
/// Java method `sendResponseApdu`.
23+
///
24+
/// ### Java method signature
25+
/// ```java
26+
/// public final void android.nfc.cardemulation.HostApduService.sendResponseApdu(byte[])
27+
/// ```
28+
@JavaMethod
29+
open func sendResponseApdu(_ arg0: [Int8])
30+
31+
/// Java method `notifyUnhandled`.
32+
///
33+
/// ### Java method signature
34+
/// ```java
35+
/// public final void android.nfc.cardemulation.HostApduService.notifyUnhandled()
36+
/// ```
37+
@JavaMethod
38+
open func notifyUnhandled()
39+
40+
/// Java method `processCommandApdu`.
41+
///
42+
/// ### Java method signature
43+
/// ```java
44+
/// public abstract byte[] android.nfc.cardemulation.HostApduService.processCommandApdu(byte[],android.os.Bundle)
45+
/// ```
46+
@JavaMethod
47+
open func processCommandApdu(_ arg0: [Int8], _ arg1: Bundle?) -> [Int8]
48+
49+
/// Java method `onDeactivated`.
50+
///
51+
/// ### Java method signature
52+
/// ```java
53+
/// public abstract void android.nfc.cardemulation.HostApduService.onDeactivated(int)
54+
/// ```
55+
@JavaMethod
56+
open func onDeactivated(_ arg0: Int32)
57+
}
58+
extension JavaClass<HostApduService> {
59+
@JavaStaticField(isFinal: true)
60+
public var DEACTIVATION_DESELECTED: Int32
61+
62+
@JavaStaticField(isFinal: true)
63+
public var DEACTIVATION_LINK_LOSS: Int32
64+
65+
@JavaStaticField(isFinal: true)
66+
public var SERVICE_INTERFACE: String
67+
68+
@JavaStaticField(isFinal: true)
69+
public var SERVICE_META_DATA: String
70+
}

0 commit comments

Comments
 (0)