首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

unity-ios钥匙串Keychain

游戏开发 12.52KB 16 需要积分: 1
立即下载

资源介绍:

1、按压缩包内路径添加至unity工程,若工程内划分了程序集,可以自行在Assets\Plugins\iOS\Keychain路径下创建程序集 2、打开KeychainWrapper.m文件,将appStoreTeamID和accessGroup设置为自己的AppStore Team ID NSString *appStoreTeamID = @"11223344"; NSString *accessGroup = @"11223344.SHARED"; 3、使用方法: var keychainWrapper = new KeychainWrapper(); keychainWrapper.SetStringForKey("key", "value"); var = keychainWrapper.GetStringForKey("key")
#import #if !__has_feature(nullability) #define NS_ASSUME_NONNULL_BEGIN #define NS_ASSUME_NONNULL_END #define nullable #define nonnull #define null_unspecified #define null_resettable #define __nullable #define __nonnull #define __null_unspecified #endif #if __has_extension(objc_generics) #define UIC_KEY_TYPE #define UIC_CREDENTIAL_TYPE *> #else #define UIC_KEY_TYPE #define UIC_CREDENTIAL_TYPE #endif NS_ASSUME_NONNULL_BEGIN extern NSString * const KeychainStoreErrorDomain; typedef NS_ENUM(NSInteger, KeychainStoreErrorCode) { KeychainStoreErrorInvalidArguments = 1, }; typedef NS_ENUM(NSInteger, KeychainStoreItemClass) { KeychainStoreItemClassGenericPassword = 1, KeychainStoreItemClassInternetPassword, }; typedef NS_ENUM(NSInteger, KeychainStoreProtocolType) { KeychainStoreProtocolTypeFTP = 1, KeychainStoreProtocolTypeFTPAccount, KeychainStoreProtocolTypeHTTP, KeychainStoreProtocolTypeIRC, KeychainStoreProtocolTypeNNTP, KeychainStoreProtocolTypePOP3, KeychainStoreProtocolTypeSMTP, KeychainStoreProtocolTypeSOCKS, KeychainStoreProtocolTypeIMAP, KeychainStoreProtocolTypeLDAP, KeychainStoreProtocolTypeAppleTalk, KeychainStoreProtocolTypeAFP, KeychainStoreProtocolTypeTelnet, KeychainStoreProtocolTypeSSH, KeychainStoreProtocolTypeFTPS, KeychainStoreProtocolTypeHTTPS, KeychainStoreProtocolTypeHTTPProxy, KeychainStoreProtocolTypeHTTPSProxy, KeychainStoreProtocolTypeFTPProxy, KeychainStoreProtocolTypeSMB, KeychainStoreProtocolTypeRTSP, KeychainStoreProtocolTypeRTSPProxy, KeychainStoreProtocolTypeDAAP, KeychainStoreProtocolTypeEPPC, KeychainStoreProtocolTypeNNTPS, KeychainStoreProtocolTypeLDAPS, KeychainStoreProtocolTypeTelnetS, KeychainStoreProtocolTypeIRCS, KeychainStoreProtocolTypePOP3S, }; typedef NS_ENUM(NSInteger, KeychainStoreAuthenticationType) { KeychainStoreAuthenticationTypeNTLM = 1, KeychainStoreAuthenticationTypeMSN, KeychainStoreAuthenticationTypeDPA, KeychainStoreAuthenticationTypeRPA, KeychainStoreAuthenticationTypeHTTPBasic, KeychainStoreAuthenticationTypeHTTPDigest, KeychainStoreAuthenticationTypeHTMLForm, KeychainStoreAuthenticationTypeDefault, }; typedef NS_ENUM(NSInteger, KeychainStoreAccessibility) { KeychainStoreAccessibilityWhenUnlocked = 1, KeychainStoreAccessibilityAfterFirstUnlock, KeychainStoreAccessibilityAlways, KeychainStoreAccessibilityWhenPasscodeSetThisDeviceOnly __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0), KeychainStoreAccessibilityWhenUnlockedThisDeviceOnly, KeychainStoreAccessibilityAfterFirstUnlockThisDeviceOnly, KeychainStoreAccessibilityAlwaysThisDeviceOnly, } __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_4_0); typedef NS_ENUM(NSInteger, KeychainStoreAuthenticationPolicy) { KeychainStoreAuthenticationPolicyUserPresence = kSecAccessControlUserPresence, }; @interface KeychainStore : NSObject @property (nonatomic, readonly) KeychainStoreItemClass itemClass; @property (nonatomic, readonly, nullable) NSString *service; @property (nonatomic, readonly, nullable) NSString *accessGroup; @property (nonatomic, readonly, nullable) NSURL *server; @property (nonatomic, readonly) KeychainStoreProtocolType protocolType; @property (nonatomic, readonly) KeychainStoreAuthenticationType authenticationType; @property (nonatomic) KeychainStoreAccessibility accessibility; @property (nonatomic, readonly) KeychainStoreAuthenticationPolicy authenticationPolicy __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0); @property (nonatomic) BOOL synchronizable; @property (nonatomic, nullable) NSString *authenticationPrompt __OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_8_0); @property (nonatomic, readonly, nullable) NSArray UIC_KEY_TYPE *allKeys; @property (nonatomic, readonly, nullable) NSArray *allItems; + (NSString *)defaultService; + (void)setDefaultService:(NSString *)defaultService; + (KeychainStore *)keychainStore; + (KeychainStore *)keychainStoreWithService:(nullable NSString *)service; + (KeychainStore *)keychainStoreWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; + (KeychainStore *)keychainStoreWithServer:(NSURL *)server protocolType:(KeychainStoreProtocolType)protocolType; + (KeychainStore *)keychainStoreWithServer:(NSURL *)server protocolType:(KeychainStoreProtocolType)protocolType authenticationType:(KeychainStoreAuthenticationType)authenticationType; - (instancetype)init; - (instancetype)initWithService:(nullable NSString *)service; - (instancetype)initWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; - (instancetype)initWithServer:(NSURL *)server protocolType:(KeychainStoreProtocolType)protocolType; - (instancetype)initWithServer:(NSURL *)server protocolType:(KeychainStoreProtocolType)protocolType authenticationType:(KeychainStoreAuthenticationType)authenticationType; + (nullable NSString *)stringForKey:(NSString *)key; + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service; + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key; + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service; + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; + (nullable NSData *)dataForKey:(NSString *)key; + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service; + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key; + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service; + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; - (BOOL)contains:(nullable NSString *)key; - (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key; - (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment; - (nullable NSString *)stringForKey:(NSString *)key; - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key; - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment; - (nullable NSData *)dataForKey:(NSString *)key; + (BOOL)removeItemForKey:(NSString *)key; + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service; + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; + (BOOL)removeAllItems; + (BOOL)removeAllItemsForService:(nullable NSString *)service; + (BOOL)removeAllItemsForService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup; - (BOOL)removeItemForKey:(NSString *)key; - (BOOL)removeAllItems; - (nullable NSString *)objectForKeyedSubscript:(NSString *)key; - (void)setObject:(nullable NSString *)obj forKeyedSubscript:(NSString *)key; + (nullable NSArray UIC_KEY_TYPE *)allKeysWithItemClass:(KeychainStoreItemClass)itemClass; - (nullable NSArray UIC_KEY_TYPE *)allKeys; + (nullable NSArray *)allItemsWithItemClass:(KeychainStoreItemClass)itemClass; - (nullable NSArray *)allItems; - (void)setAccessibility:(KeychainStoreAccessibility)accessibility authenticationPolicy:(KeychainStoreAuthenticationPolicy)authenticationPolicy __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0); #if TARGET_OS_IOS - (void)sharedPasswordWithCompletion:(nullable void (^)(NSStri

资源文件列表:

IOSKeychain.zip 大约有14个文件
  1. Assets/
  2. Assets/Plugins/
  3. Assets/Plugins/iOS/
  4. Assets/Plugins/iOS/Keychain/
  5. Assets/Plugins/iOS/Keychain/IKeychainWrapper.cs 355B
  6. Assets/Plugins/iOS/Keychain/IOSKeychainBridge.cs 1.03KB
  7. Assets/Plugins/iOS/Keychain/KeychainWrapper.cs 1.6KB
  8. Assets/Plugins/iOS/Keychain/Native/
  9. Assets/Plugins/iOS/Keychain/Native/KeychainPlugin.h 77B
  10. Assets/Plugins/iOS/Keychain/Native/KeychainPlugin.mm 1.23KB
  11. Assets/Plugins/iOS/Keychain/Native/KeychainStore.h 15.67KB
  12. Assets/Plugins/iOS/Keychain/Native/KeychainStore.m 48.33KB
  13. Assets/Plugins/iOS/Keychain/Native/KeychainWrapper.h 437B
  14. Assets/Plugins/iOS/Keychain/Native/KeychainWrapper.m 2.48KB
0评论
提交 加载更多评论
其他资源 Z270I GAMING PRO CARBON AC MS-7A66 1.0
微星Z270I GAMING PRO CARBON AC MS-7A66 1.0 原理图 解压密码:1234
sonarlint-eclipse-master.zip
sonarlint-eclipse-master.zip
visualvm11111111
visualvm11111111
c语言实现数字雨.zip
c语言实现数字雨.zip
SVPWM FOC双闭环
SVPWM FOC双闭环
SVPWM FOC双闭环 SVPWM FOC双闭环 SVPWM FOC双闭环
无锡主站升级报告.zip
无锡主站升级报告.zip
无锡主站升级报告.zip
Midjourney MJ代理转换接口的源代码
1、在国内要使用Midjourney的的功能,一种是直接到MJ上去操作,还有一种是自身的项目想集成MJ的文生图功能,这时需要利用爬虫技术模拟操作,本MJ代理接口就是利用爬虫技术实现的转换接口,本接口是http方式,返回数据为json格式,只要能实现http的都可以使用本接口; 2、本MJ代理接口项目分为后台管理与前端接口;前端实现了”文生图接口“,定时任务“自动爬取MJ图片信息”和“自动回调图片到客户端”,实现了多账号功能,按后台设置的优先级来操作;后台实现了“文生图任务管理”、“MJ账号管理”、“MJ日志管理”、“文生图消息队列”等功能,方便管理与监控。
Midjourney MJ代理转换接口的源代码 Midjourney MJ代理转换接口的源代码 Midjourney MJ代理转换接口的源代码
Flutter 绘制加载动画
绘制加载动画:由小圆组成的大圆 效果视频展示:https://live.csdn.net/v/417383 请查看我的博客Flutter进阶,有此视频的代码介绍