Skip to content

Commit 027a79d

Browse files
committed
Add Latitude/Longitude and proxy Center to them
1 parent d0d350c commit 027a79d

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

com.unity.mobile.notifications/Runtime/iOS/iOSNotificationTriggers.cs

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,28 @@ public struct iOSNotificationLocationTrigger : iOSNotificationTrigger
6262
/// <summary>
6363
/// The center point of the geographic area.
6464
/// </summary>
65-
public Vector2 Center { get; set; }
65+
public Vector2 Center
66+
{
67+
get
68+
{
69+
return new Vector2((float)Latitude, (float)Longitude);
70+
}
71+
set
72+
{
73+
Latitude = value.x;
74+
Longitude = value.y;
75+
}
76+
}
77+
78+
/// <summary>
79+
/// The latitude of the center point of the geographic area.
80+
/// </summary>
81+
public double Latitude { get; set; }
82+
83+
/// <summary>
84+
/// The longitude of the center point of the geographic area.
85+
/// </summary>
86+
public double Longitude { get; set; }
6687

6788
/// <summary>
6889
/// The radius (measured in meters) that defines the geographic area’s outer boundary.

0 commit comments

Comments
 (0)