Rabbit-R1/original r1/java/sources/org/webrtc/TurnCustomizer.java
2024-05-21 17:08:36 -04:00

29 lines
760 B
Java

package org.webrtc;
/* loaded from: classes3.dex */
public class TurnCustomizer {
private long nativeTurnCustomizer;
private static native void nativeFreeTurnCustomizer(long j);
public TurnCustomizer(long j) {
this.nativeTurnCustomizer = j;
}
public void dispose() {
checkTurnCustomizerExists();
nativeFreeTurnCustomizer(this.nativeTurnCustomizer);
this.nativeTurnCustomizer = 0L;
}
long getNativeTurnCustomizer() {
checkTurnCustomizerExists();
return this.nativeTurnCustomizer;
}
private void checkTurnCustomizerExists() {
if (this.nativeTurnCustomizer == 0) {
throw new IllegalStateException("TurnCustomizer has been disposed.");
}
}
}