_backend.AddEventHandler<RegionFormatChangedEventArgs>(EventType.RegionFormatChanged, OnRegionFormatChanged);
_backend.AddEventHandler<DeviceOrientationEventArgs>(EventType.DeviceOrientationChanged, OnDeviceOrientationChanged);
- string[] argsClone = null;
-
- if (args == null)
- {
- argsClone = new string[1];
- }
- else
+ string[] argsClone = new string[args.Length + 1];
+ if (args.Length > 1)
{
- argsClone = new string[args.Length + 1];
args.CopyTo(argsClone, 1);
}
argsClone[0] = string.Empty;
+
_backend.Run(argsClone);
}
public void Run(string[] args)
{
+ TizenSynchronizationContext.Initialize();
+
Interop.Watch.ErrorCode err = Interop.Watch.ErrorCode.None;
err = Interop.Watch.AddEventHandler(out _lowMemoryEventHandle, Interop.Watch.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
public void Run(string[] args)
{
+ TizenSynchronizationContext.Initialize();
+
Interop.Widget.ErrorCode err = Interop.Widget.ErrorCode.None;
err = Interop.Widget.AddEventHandler(out _lowMemoryEventHandle, Interop.Widget.AppEventType.LowMemory, _lowMemoryCallback, IntPtr.Zero);
if (err != Interop.Widget.ErrorCode.None)
}
/// <summary>
- /// Enables the local Bluetooth adapter, asynchronously.
+ /// Enables the local Bluetooth adapter asynchronously.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <feature>http://tizen.org/feature/network.bluetooth</feature>
}
/// <summary>
- /// Disables the local Bluetooth adapter, asynchronously.
+ /// Disables the local Bluetooth adapter asynchronously.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <feature>http://tizen.org/feature/network.bluetooth</feature>
}
/// <summary>
- /// Enables the discoverable mode.
+ /// Enables the discoverable mode for the duration.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <param name="duration">The duration until the discoverable mode is to be disabled(in seconds).</param>
}
/// <summary>
- /// Opens a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously.
+ /// Opens a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device asynchronously.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <feature>http://tizen.org/feature/network.bluetooth</feature>
}
/// <summary>
- /// Closes a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device, asynchronously.
+ /// Closes a AG(Audio Gateway) SCO(Synchronous Connection Oriented link) to connected remote device asynchronously.
/// </summary>
/// <since_tizen> 6 </since_tizen>
/// <feature>http://tizen.org/feature/network.bluetooth</feature>
serviceDataPtr = Marshal.AllocHGlobal(data.DataLength);
Marshal.Copy(data.Data, 0, serviceDataPtr, data.DataLength);
- for (int i = 0; i < 3; i++)
+ for (int i = 0; i < data.DataLength; i++)
Log.Error (Globals.LogTag, " service data is " + data.Data [i]);
int ret = Interop.Bluetooth.AddAdvertisingServiceData(GetHandle(), packetType,
data.Uuid, serviceDataPtr, data.DataLength);