using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using MarsSDK;
using UnityEngine.UI;

// Token: 0x020002E1 RID: 737
public class UIToggleHandler : UIHandlerBase
{
	// Token: 0x0600606C RID: 24684 RVA: 0x00185A94 File Offset: 0x00183C94
	[CallerCount(0)]
	public unsafe bool GetToggle()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr_GetToggle_Public_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		return *IL2CPP.il2cpp_object_unbox(intPtr);
	}

	// Token: 0x0600606D RID: 24685 RVA: 0x00185AE4 File Offset: 0x00183CE4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595540, XrefRangeEnd = 595547, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Init(bool isToggle, Action<bool> valueChangedHandler)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref isToggle;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(valueChangedHandler);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr_Init_Public_Void_Boolean_Action_1_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x0600606E RID: 24686 RVA: 0x00185B50 File Offset: 0x00183D50
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetToggleTextArray(Il2CppStringArray array = null)
	{
		if (array == null)
		{
			array = new Il2CppStringArray(0L);
		}
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(array);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr_SetToggleTextArray_Public_Void_Il2CppStringArray_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x0600606F RID: 24687 RVA: 0x00185BC0 File Offset: 0x00183DC0
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595547, XrefRangeEnd = 595561, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnSelect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIToggleHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006070 RID: 24688 RVA: 0x00185C10 File Offset: 0x00183E10
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595561, XrefRangeEnd = 595575, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void OnDeselect()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), UIToggleHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006071 RID: 24689 RVA: 0x00185C60 File Offset: 0x00183E60
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595575, XrefRangeEnd = 595579, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Submit()
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr_Submit_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006072 RID: 24690 RVA: 0x00185CA4 File Offset: 0x00183EA4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void SetLabel(string value)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.ManagedStringToIl2Cpp(value);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06006073 RID: 24691 RVA: 0x00185D00 File Offset: 0x00183F00
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 595579, XrefRangeEnd = 595603, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe UIToggleHandler()
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr))
	{
		IntPtr* ptr = null;
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UIToggleHandler.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06006074 RID: 24692 RVA: 0x00185D4B File Offset: 0x00183F4B
	public void SetToggleTextArray(params string[] array)
	{
		this.SetToggleTextArray(new Il2CppStringArray(array));
	}

	// Token: 0x06006075 RID: 24693 RVA: 0x00185D5C File Offset: 0x00183F5C
	// Note: this type is marked as 'beforefieldinit'.
	static UIToggleHandler()
	{
		Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "UIToggleHandler");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr);
		UIToggleHandler.NativeFieldInfoPtr_label = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, "label");
		UIToggleHandler.NativeFieldInfoPtr_value = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, "value");
		UIToggleHandler.NativeFieldInfoPtr_isToggle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, "isToggle");
		UIToggleHandler.NativeFieldInfoPtr_valueChangedHandler = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, "valueChangedHandler");
		UIToggleHandler.NativeFieldInfoPtr_toggleText = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, "toggleText");
		UIToggleHandler.NativeMethodInfoPtr_GetToggle_Public_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670229);
		UIToggleHandler.NativeMethodInfoPtr_Init_Public_Void_Boolean_Action_1_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670230);
		UIToggleHandler.NativeMethodInfoPtr_SetToggleTextArray_Public_Void_Il2CppStringArray_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670231);
		UIToggleHandler.NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670232);
		UIToggleHandler.NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670233);
		UIToggleHandler.NativeMethodInfoPtr_Submit_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670234);
		UIToggleHandler.NativeMethodInfoPtr_SetLabel_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670235);
		UIToggleHandler.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UIToggleHandler>.NativeClassPtr, 100670236);
	}

	// Token: 0x06006076 RID: 24694 RVA: 0x0015B1F8 File Offset: 0x001593F8
	public UIToggleHandler(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17002150 RID: 8528
	// (get) Token: 0x06006077 RID: 24695 RVA: 0x00185E90 File Offset: 0x00184090
	// (set) Token: 0x06006078 RID: 24696 RVA: 0x00185EC4 File Offset: 0x001840C4
	public unsafe Text label
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_label);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_label), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002151 RID: 8529
	// (get) Token: 0x06006079 RID: 24697 RVA: 0x00185EEC File Offset: 0x001840EC
	// (set) Token: 0x0600607A RID: 24698 RVA: 0x00185F20 File Offset: 0x00184120
	public unsafe Text value
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_value);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Text(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_value), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002152 RID: 8530
	// (get) Token: 0x0600607B RID: 24699 RVA: 0x00185F48 File Offset: 0x00184148
	// (set) Token: 0x0600607C RID: 24700 RVA: 0x00185F70 File Offset: 0x00184170
	public unsafe bool isToggle
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_isToggle);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_isToggle)) = value;
		}
	}

	// Token: 0x17002153 RID: 8531
	// (get) Token: 0x0600607D RID: 24701 RVA: 0x00185F94 File Offset: 0x00184194
	// (set) Token: 0x0600607E RID: 24702 RVA: 0x00185FC8 File Offset: 0x001841C8
	public unsafe Action<bool> valueChangedHandler
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_valueChangedHandler);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Action<bool>(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_valueChangedHandler), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17002154 RID: 8532
	// (get) Token: 0x0600607F RID: 24703 RVA: 0x00185FF0 File Offset: 0x001841F0
	// (set) Token: 0x06006080 RID: 24704 RVA: 0x00186024 File Offset: 0x00184224
	public unsafe Il2CppStringArray toggleText
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_toggleText);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Il2CppStringArray(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(UIToggleHandler.NativeFieldInfoPtr_toggleText), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x04004022 RID: 16418
	private static readonly IntPtr NativeFieldInfoPtr_label;

	// Token: 0x04004023 RID: 16419
	private static readonly IntPtr NativeFieldInfoPtr_value;

	// Token: 0x04004024 RID: 16420
	private static readonly IntPtr NativeFieldInfoPtr_isToggle;

	// Token: 0x04004025 RID: 16421
	private static readonly IntPtr NativeFieldInfoPtr_valueChangedHandler;

	// Token: 0x04004026 RID: 16422
	private static readonly IntPtr NativeFieldInfoPtr_toggleText;

	// Token: 0x04004027 RID: 16423
	private static readonly IntPtr NativeMethodInfoPtr_GetToggle_Public_Boolean_0;

	// Token: 0x04004028 RID: 16424
	private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Void_Boolean_Action_1_Boolean_0;

	// Token: 0x04004029 RID: 16425
	private static readonly IntPtr NativeMethodInfoPtr_SetToggleTextArray_Public_Void_Il2CppStringArray_0;

	// Token: 0x0400402A RID: 16426
	private static readonly IntPtr NativeMethodInfoPtr_OnSelect_Public_Virtual_Void_0;

	// Token: 0x0400402B RID: 16427
	private static readonly IntPtr NativeMethodInfoPtr_OnDeselect_Public_Virtual_Void_0;

	// Token: 0x0400402C RID: 16428
	private static readonly IntPtr NativeMethodInfoPtr_Submit_Public_Void_0;

	// Token: 0x0400402D RID: 16429
	private static readonly IntPtr NativeMethodInfoPtr_SetLabel_Public_Void_String_0;

	// Token: 0x0400402E RID: 16430
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
}
