Exemple #1
0
        public virtual unsafe void StartScan(global::Com.Vivalnk.Android.Support.V18.Scanner.ScanCallback @callback)
        {
            const string __id = "startScan.(Lcom/vivalnk/android/support/v18/scanner/ScanCallback;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
            }
        }
Exemple #2
0
        public override unsafe void FlushPendingScanResults(global::Com.Vivalnk.Android.Support.V18.Scanner.ScanCallback p0)
        {
            const string __id = "flushPendingScanResults.(Lcom/vivalnk/android/support/v18/scanner/ScanCallback;)V";

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [1];
                __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle);
                _members.InstanceMethods.InvokeAbstractVoidMethod(__id, this, __args);
            } finally {
            }
        }
Exemple #3
0
 public abstract void FlushPendingScanResults(global::Com.Vivalnk.Android.Support.V18.Scanner.ScanCallback p0);
Exemple #4
0
 public abstract void StopScan(global::Com.Vivalnk.Android.Support.V18.Scanner.ScanCallback p0);
Exemple #5
0
        public virtual unsafe void StartScan(global::System.Collections.Generic.IList <global::Com.Vivalnk.Android.Support.V18.Scanner.ScanFilter> filters, global::Com.Vivalnk.Android.Support.V18.Scanner.ScanSettings settings, global::Com.Vivalnk.Android.Support.V18.Scanner.ScanCallback @callback)
        {
            const string __id           = "startScan.(Ljava/util/List;Lcom/vivalnk/android/support/v18/scanner/ScanSettings;Lcom/vivalnk/android/support/v18/scanner/ScanCallback;)V";
            IntPtr       native_filters = global::Android.Runtime.JavaList <global::Com.Vivalnk.Android.Support.V18.Scanner.ScanFilter> .ToLocalJniHandle(filters);

            try {
                JniArgumentValue *__args = stackalloc JniArgumentValue [3];
                __args [0] = new JniArgumentValue(native_filters);
                __args [1] = new JniArgumentValue((settings == null) ? IntPtr.Zero : ((global::Java.Lang.Object)settings).Handle);
                __args [2] = new JniArgumentValue((@callback == null) ? IntPtr.Zero : ((global::Java.Lang.Object)@callback).Handle);
                _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args);
            } finally {
                JNIEnv.DeleteLocalRef(native_filters);
            }
        }