mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-28 18:12:31 -06:00
30 lines
760 B
Java
30 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.");
|
||
|
}
|
||
|
}
|
||
|
}
|