May return true if the caller is the only owner. Ensures that all previous owner's actions are complete.
()
| 895 | * <p>Ensures that all previous owner's actions are complete.</p> |
| 896 | */ |
| 897 | public boolean isUnique() { |
| 898 | try { |
| 899 | Stats.onNativeCall(); |
| 900 | return _nUnique(_ptr); |
| 901 | } finally { |
| 902 | ReferenceUtil.reachabilityFence(this); |
| 903 | } |
| 904 | } |
| 905 | |
| 906 | @ApiStatus.Internal |
| 907 | public Surface(long ptr) { |