Skip to content

Commit cbb1cea

Browse files
committed
fix(NativeFacebookLogin): Remove null handling for launch options and options parameters
1 parent 183aed7 commit cbb1cea

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Kapusch.FacebookApisForiOSComponents/Facebook/NativeFacebookLogin.iOS.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static void Initialize(IntPtr uiApplicationHandle, IntPtr launchOptionsHa
1616
{
1717
KfiFacebookInitialize(
1818
uiApplicationHandle,
19-
launchOptionsHandle == IntPtr.Zero ? null : launchOptionsHandle
19+
launchOptionsHandle
2020
);
2121
}
2222
catch
@@ -39,7 +39,7 @@ IntPtr optionsHandle
3939
return KfiFacebookHandleOpenUrl(
4040
uiApplicationHandle,
4141
nsUrlHandle,
42-
optionsHandle == IntPtr.Zero ? null : optionsHandle
42+
optionsHandle
4343
);
4444
}
4545
catch
@@ -131,14 +131,14 @@ IntPtr context
131131
}
132132

133133
[DllImport(LibraryName, EntryPoint = "kfb_facebook_initialize")]
134-
private static extern void KfiFacebookInitialize(IntPtr uiApplication, IntPtr? launchOptions);
134+
private static extern void KfiFacebookInitialize(IntPtr uiApplication, IntPtr launchOptions);
135135

136136
[DllImport(LibraryName, EntryPoint = "kfb_facebook_handle_open_url")]
137137
[return: MarshalAs(UnmanagedType.I1)]
138138
private static extern bool KfiFacebookHandleOpenUrl(
139139
IntPtr uiApplication,
140140
IntPtr nsUrl,
141-
IntPtr? options
141+
IntPtr options
142142
);
143143

144144
[DllImport(LibraryName, EntryPoint = "kfb_facebook_signin_start")]

0 commit comments

Comments
 (0)