Skip to content

Commit 4769637

Browse files
committed
Add android.net.* generated sources
1 parent 00cb346 commit 4769637

274 files changed

Lines changed: 22298 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import SwiftJava
3+
import SwiftJavaJNICore
4+
5+
@JavaClass("android.net.wifi.aware.AttachCallback")
6+
open class AttachCallback: JavaObject {
7+
@JavaMethod
8+
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
9+
10+
/// Java method `onAttached`.
11+
///
12+
/// ### Java method signature
13+
/// ```java
14+
/// public void android.net.wifi.aware.AttachCallback.onAttached(android.net.wifi.aware.WifiAwareSession)
15+
/// ```
16+
@JavaMethod
17+
open func onAttached(_ arg0: WifiAwareSession?)
18+
19+
/// Java method `onAttachFailed`.
20+
///
21+
/// ### Java method signature
22+
/// ```java
23+
/// public void android.net.wifi.aware.AttachCallback.onAttachFailed()
24+
/// ```
25+
@JavaMethod
26+
open func onAttachFailed()
27+
28+
/// Java method `onAwareSessionTerminated`.
29+
///
30+
/// ### Java method signature
31+
/// ```java
32+
/// public void android.net.wifi.aware.AttachCallback.onAwareSessionTerminated()
33+
/// ```
34+
@JavaMethod
35+
open func onAwareSessionTerminated()
36+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import SwiftJava
3+
import SwiftJavaJNICore
4+
5+
@available(*, deprecated)
6+
@JavaClass("android.net.rtp.AudioCodec")
7+
open class AudioCodec: JavaObject {
8+
@available(*, deprecated)
9+
@JavaField(isFinal: true)
10+
public var fmtp: String
11+
12+
@available(*, deprecated)
13+
@JavaField(isFinal: true)
14+
public var rtpmap: String
15+
16+
@available(*, deprecated)
17+
@JavaField(isFinal: true)
18+
public var type: Int32
19+
}
20+
extension JavaClass<AudioCodec> {
21+
@available(*, deprecated)
22+
@JavaStaticField(isFinal: true)
23+
public var AMR: AudioCodec!
24+
25+
@available(*, deprecated)
26+
@JavaStaticField(isFinal: true)
27+
public var GSM: AudioCodec!
28+
29+
@available(*, deprecated)
30+
@JavaStaticField(isFinal: true)
31+
public var GSM_EFR: AudioCodec!
32+
33+
@available(*, deprecated)
34+
@JavaStaticField(isFinal: true)
35+
public var PCMA: AudioCodec!
36+
37+
@available(*, deprecated)
38+
@JavaStaticField(isFinal: true)
39+
public var PCMU: AudioCodec!
40+
41+
/// Java method `getCodecs`.
42+
///
43+
/// ### Java method signature
44+
/// ```java
45+
/// public static android.net.rtp.AudioCodec[] android.net.rtp.AudioCodec.getCodecs()
46+
/// ```
47+
@available(*, deprecated)
48+
@JavaStaticMethod
49+
public func getCodecs() -> [AudioCodec?]
50+
51+
/// Java method `getCodec`.
52+
///
53+
/// ### Java method signature
54+
/// ```java
55+
/// public static android.net.rtp.AudioCodec android.net.rtp.AudioCodec.getCodec(int,java.lang.String,java.lang.String)
56+
/// ```
57+
@available(*, deprecated)
58+
@JavaStaticMethod
59+
public func getCodec(_ arg0: Int32, _ arg1: String, _ arg2: String) -> AudioCodec!
60+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidContent
3+
import SwiftJava
4+
import SwiftJavaJNICore
5+
6+
@available(*, deprecated)
7+
@JavaClass("android.net.rtp.AudioGroup")
8+
open class AudioGroup: JavaObject {
9+
@available(*, deprecated)
10+
@JavaMethod
11+
@_nonoverride public convenience init(environment: JNIEnvironment? = nil)
12+
13+
@available(*, deprecated)
14+
@JavaMethod
15+
@_nonoverride public convenience init(_ arg0: Context?, environment: JNIEnvironment? = nil)
16+
17+
/// Java method `sendDtmf`.
18+
///
19+
/// ### Java method signature
20+
/// ```java
21+
/// public void android.net.rtp.AudioGroup.sendDtmf(int)
22+
/// ```
23+
@available(*, deprecated)
24+
@JavaMethod
25+
open func sendDtmf(_ arg0: Int32)
26+
27+
/// Java method `getStreams`.
28+
///
29+
/// ### Java method signature
30+
/// ```java
31+
/// public android.net.rtp.AudioStream[] android.net.rtp.AudioGroup.getStreams()
32+
/// ```
33+
@available(*, deprecated)
34+
@JavaMethod
35+
open func getStreams() -> [AudioStream?]
36+
37+
/// Java method `getMode`.
38+
///
39+
/// ### Java method signature
40+
/// ```java
41+
/// public int android.net.rtp.AudioGroup.getMode()
42+
/// ```
43+
@available(*, deprecated)
44+
@JavaMethod
45+
open func getMode() -> Int32
46+
47+
/// Java method `setMode`.
48+
///
49+
/// ### Java method signature
50+
/// ```java
51+
/// public void android.net.rtp.AudioGroup.setMode(int)
52+
/// ```
53+
@available(*, deprecated)
54+
@JavaMethod
55+
open func setMode(_ arg0: Int32)
56+
57+
/// Java method `finalize`.
58+
///
59+
/// ### Java method signature
60+
/// ```java
61+
/// protected void android.net.rtp.AudioGroup.finalize() throws java.lang.Throwable
62+
/// ```
63+
@available(*, deprecated)
64+
@JavaMethod
65+
open override func finalize() throws
66+
67+
/// Java method `clear`.
68+
///
69+
/// ### Java method signature
70+
/// ```java
71+
/// public void android.net.rtp.AudioGroup.clear()
72+
/// ```
73+
@available(*, deprecated)
74+
@JavaMethod
75+
open func clear()
76+
}
77+
extension JavaClass<AudioGroup> {
78+
@available(*, deprecated)
79+
@JavaStaticField(isFinal: true)
80+
public var MODE_ECHO_SUPPRESSION: Int32
81+
82+
@available(*, deprecated)
83+
@JavaStaticField(isFinal: true)
84+
public var MODE_MUTED: Int32
85+
86+
@available(*, deprecated)
87+
@JavaStaticField(isFinal: true)
88+
public var MODE_NORMAL: Int32
89+
90+
@available(*, deprecated)
91+
@JavaStaticField(isFinal: true)
92+
public var MODE_ON_HOLD: Int32
93+
}
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import JavaLangNet
3+
import SwiftJava
4+
import SwiftJavaJNICore
5+
6+
@available(*, deprecated)
7+
@JavaClass("android.net.rtp.AudioStream")
8+
open class AudioStream: RtpStream {
9+
@available(*, deprecated)
10+
@JavaMethod
11+
@_nonoverride public convenience init(_ arg0: InetAddress?, environment: JNIEnvironment? = nil) throws
12+
13+
/// Java method `getCodec`.
14+
///
15+
/// ### Java method signature
16+
/// ```java
17+
/// public android.net.rtp.AudioCodec android.net.rtp.AudioStream.getCodec()
18+
/// ```
19+
@available(*, deprecated)
20+
@JavaMethod
21+
open func getCodec() -> AudioCodec!
22+
23+
/// Java method `isBusy`.
24+
///
25+
/// ### Java method signature
26+
/// ```java
27+
/// public final boolean android.net.rtp.AudioStream.isBusy()
28+
/// ```
29+
@available(*, deprecated)
30+
@JavaMethod
31+
open override func isBusy() -> Bool
32+
33+
/// Java method `getGroup`.
34+
///
35+
/// ### Java method signature
36+
/// ```java
37+
/// public android.net.rtp.AudioGroup android.net.rtp.AudioStream.getGroup()
38+
/// ```
39+
@available(*, deprecated)
40+
@JavaMethod
41+
open func getGroup() -> AudioGroup!
42+
43+
/// Java method `setCodec`.
44+
///
45+
/// ### Java method signature
46+
/// ```java
47+
/// public void android.net.rtp.AudioStream.setCodec(android.net.rtp.AudioCodec)
48+
/// ```
49+
@available(*, deprecated)
50+
@JavaMethod
51+
open func setCodec(_ arg0: AudioCodec?)
52+
53+
/// Java method `getDtmfType`.
54+
///
55+
/// ### Java method signature
56+
/// ```java
57+
/// public int android.net.rtp.AudioStream.getDtmfType()
58+
/// ```
59+
@available(*, deprecated)
60+
@JavaMethod
61+
open func getDtmfType() -> Int32
62+
63+
/// Java method `setDtmfType`.
64+
///
65+
/// ### Java method signature
66+
/// ```java
67+
/// public void android.net.rtp.AudioStream.setDtmfType(int)
68+
/// ```
69+
@available(*, deprecated)
70+
@JavaMethod
71+
open func setDtmfType(_ arg0: Int32)
72+
73+
/// Java method `join`.
74+
///
75+
/// ### Java method signature
76+
/// ```java
77+
/// public void android.net.rtp.AudioStream.join(android.net.rtp.AudioGroup)
78+
/// ```
79+
@available(*, deprecated)
80+
@JavaMethod
81+
open func join(_ arg0: AudioGroup?)
82+
}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidOS
3+
import SwiftJava
4+
import SwiftJavaJNICore
5+
6+
@JavaClass("android.net.wifi.aware.AwareResources", implements: Parcelable.self)
7+
open class AwareResources: JavaObject {
8+
@JavaMethod
9+
@_nonoverride public convenience init(_ arg0: Int32, _ arg1: Int32, _ arg2: Int32, environment: JNIEnvironment? = nil)
10+
11+
/// Java method `describeContents`.
12+
///
13+
/// ### Java method signature
14+
/// ```java
15+
/// public int android.net.wifi.aware.AwareResources.describeContents()
16+
/// ```
17+
@JavaMethod
18+
open func describeContents() -> Int32
19+
20+
/// Java method `writeToParcel`.
21+
///
22+
/// ### Java method signature
23+
/// ```java
24+
/// public void android.net.wifi.aware.AwareResources.writeToParcel(android.os.Parcel,int)
25+
/// ```
26+
@JavaMethod
27+
open func writeToParcel(_ arg0: Parcel?, _ arg1: Int32)
28+
29+
/// Java method `getAvailableDataPathsCount`.
30+
///
31+
/// ### Java method signature
32+
/// ```java
33+
/// public int android.net.wifi.aware.AwareResources.getAvailableDataPathsCount()
34+
/// ```
35+
@JavaMethod
36+
open func getAvailableDataPathsCount() -> Int32
37+
38+
/// Java method `getAvailablePublishSessionsCount`.
39+
///
40+
/// ### Java method signature
41+
/// ```java
42+
/// public int android.net.wifi.aware.AwareResources.getAvailablePublishSessionsCount()
43+
/// ```
44+
@JavaMethod
45+
open func getAvailablePublishSessionsCount() -> Int32
46+
47+
/// Java method `getAvailableSubscribeSessionsCount`.
48+
///
49+
/// ### Java method signature
50+
/// ```java
51+
/// public int android.net.wifi.aware.AwareResources.getAvailableSubscribeSessionsCount()
52+
/// ```
53+
@JavaMethod
54+
open func getAvailableSubscribeSessionsCount() -> Int32
55+
}
56+
extension JavaClass<AwareResources> {
57+
@JavaStaticField(isFinal: true)
58+
public var CREATOR: Parcelable.Creator<AwareResources>!
59+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Auto-generated by Java-to-Swift wrapper generator.
2+
import AndroidOS
3+
import SwiftJava
4+
import SwiftJavaJNICore
5+
6+
@JavaClass("android.net.CaptivePortal", implements: Parcelable.self)
7+
open class CaptivePortal: JavaObject {
8+
/// Java method `describeContents`.
9+
///
10+
/// ### Java method signature
11+
/// ```java
12+
/// public int android.net.CaptivePortal.describeContents()
13+
/// ```
14+
@JavaMethod
15+
open func describeContents() -> Int32
16+
17+
/// Java method `writeToParcel`.
18+
///
19+
/// ### Java method signature
20+
/// ```java
21+
/// public void android.net.CaptivePortal.writeToParcel(android.os.Parcel,int)
22+
/// ```
23+
@JavaMethod
24+
open func writeToParcel(_ arg0: Parcel?, _ arg1: Int32)
25+
26+
/// Java method `reportCaptivePortalDismissed`.
27+
///
28+
/// ### Java method signature
29+
/// ```java
30+
/// public void android.net.CaptivePortal.reportCaptivePortalDismissed()
31+
/// ```
32+
@JavaMethod
33+
open func reportCaptivePortalDismissed()
34+
35+
/// Java method `ignoreNetwork`.
36+
///
37+
/// ### Java method signature
38+
/// ```java
39+
/// public void android.net.CaptivePortal.ignoreNetwork()
40+
/// ```
41+
@JavaMethod
42+
open func ignoreNetwork()
43+
}
44+
extension JavaClass<CaptivePortal> {
45+
@JavaStaticField(isFinal: true)
46+
public var CREATOR: Parcelable.Creator<CaptivePortal>!
47+
}

0 commit comments

Comments
 (0)