internal static extern void NearbyConnections_StartAdvertising(
     HandleRef self,
     /* from(char const *) */ string name,
     /* from(AppIdentifier_t const *) */ IntPtr[] app_identifiers,
     /* from(size_t) */ UIntPtr app_identifiers_size,
     /* from(int64_t) */ long duration,
     /* from(StartAdvertisingCallback_t) */ NearbyConnectionTypes.StartAdvertisingCallback start_advertising_callback,
     /* from(void *) */ IntPtr start_advertising_callback_arg,
     /* from(ConnectionRequestCallback_t) */ NearbyConnectionTypes.ConnectionRequestCallback request_callback,
     /* from(void *) */ IntPtr request_callback_arg);
Exemplo n.º 2
0
 protected override void CallDispose(HandleRef selfPointer)
 {
     C.AppIdentifier_Dispose(selfPointer);
 }
 internal static extern void NearbyConnections_SendConnectionRequest(
     HandleRef self,
     /* from(char const *) */ string name,
     /* from(char const *) */ string remote_endpoint_id,
     /* from(uint8_t const *) */ byte[] payload,
     /* from(size_t) */ UIntPtr payload_size,
     /* from(ConnectionResponseCallback_t) */ NearbyConnectionTypes.ConnectionResponseCallback callback,
     /* from(void *) */ IntPtr callback_arg,
     /* from(MessageListenerHelper_t) */ IntPtr helper);
Exemplo n.º 4
0
 internal string Id()
 {
     return(PInvokeUtilities.OutParamsToString(
                (out_arg, out_size) => C.AppIdentifier_GetIdentifier(SelfPtr(), out_arg, out_size)));
 }