目次
Xcode の新機能
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
Result
結果の表現
case success(Success)
case failure(Failure)
失敗可能な非同期 API の記述
Throw する式を結果に変換する
throw する式の結果の保存
init(catching: () throws(Failure) -> Success)
結果を throw する式に変換する
func get() throws(Failure) -> Success
結果の変換
func map<NewSuccess>((Success) -> NewSuccess) -> Result<NewSuccess, Failure>
func mapError<NewFailure>((Failure) -> NewFailure) -> Result<Success, NewFailure>
func flatMap<NewSuccess>((Success) -> Result<NewSuccess, Failure>) -> Result<NewSuccess, Failure>
func flatMapError<NewFailure>((Failure) -> Result<Success, NewFailure>) -> Result<Success, NewFailure>
結果の比較
static func == (Result<Success, Failure>, Result<Success, Failure>) -> Bool
static func != (Self, Self) -> Bool
結果の公開
var publisher: Result<Success, Failure>.Publisher
struct Result.Publisher
結果発行者の作成
init(Result<Result<Success, Failure>.Publisher.Output, Failure>)
init(Failure)
init(Result<Success, Failure>.Publisher.Output)
発行者プロパティの検査
let result: Result<Result<Success, Failure>.Publisher.Output, Failure>
インスタンスメソッド
func allSatisfy((Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Bool, Failure>.Publisher
func collect() -> Result<[Result<Success, Failure>.Publisher.Output], Failure>.Publisher
func contains(Result<Success, Failure>.Publisher.Output) -> Result<Bool, Failure>.Publisher
func contains(where: (Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Bool, Failure>.Publisher
func count() -> Result<Int, Failure>.Publisher
func first() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func ignoreOutput() -> Empty<Result<Success, Failure>.Publisher.Output, Failure>
func last() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func map<T>((Result<Success, Failure>.Publisher.Output) -> T) -> Result<T, Failure>.Publisher
func mapError<E>((Failure) -> E) -> Result<Result<Success, Failure>.Publisher.Output, E>.Publisher
func max() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func max(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func min() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func min(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func reduce<T>(T, (T, Result<Success, Failure>.Publisher.Output) -> T) -> Result<T, Failure>.Publisher
func removeDuplicates() -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func removeDuplicates(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func replaceEmpty(with: Result<Success, Failure>.Publisher.Output) -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func replaceError(with: Result<Success, Failure>.Publisher.Output) -> Result<Result<Success, Failure>.Publisher.Output, Never>.Publisher
func retry(Int) -> Result<Result<Success, Failure>.Publisher.Output, Failure>.Publisher
func scan<T>(T, (T, Result<Success, Failure>.Publisher.Output) -> T) -> Result<T, Failure>.Publisher
func setFailureType<E>(to: E.Type) -> Result<Result<Success, Failure>.Publisher.Output, E>.Publisher
func tryAllSatisfy((Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Bool, any Error>.Publisher
func tryContains(where: (Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Bool, any Error>.Publisher
func tryMap<T>((Result<Success, Failure>.Publisher.Output) throws -> T) -> Result<T, any Error>.Publisher
func tryMax(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, any Error>.Publisher
func tryMin(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, any Error>.Publisher
func tryReduce<T>(T, (T, Result<Success, Failure>.Publisher.Output) throws -> T) -> Result<T, any Error>.Publisher
func tryRemoveDuplicates(by: (Result<Success, Failure>.Publisher.Output, Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Result<Success, Failure>.Publisher.Output, any Error>.Publisher
func tryScan<T>(T, (T, Result<Success, Failure>.Publisher.Output) throws -> T) -> Result<T, any Error>.Publisher
デフォルトの実装
Equatable の実装
Hashable の実装
ReferenceConvertible
サポートする型
associatedtype ReferenceType
Protocol RawRepresentable
値の作成
init?(rawValue: Self.RawValue)
生の値へのアクセス
var rawValue: Self.RawValue
associatedtype RawValue
値の比較
func == <T>(T, T) -> Bool
func != <T>(T, T) -> Bool
func != <T>(T, T) -> Bool
値の復号
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
init(from: any Decoder) throws
値のコード化
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
イニシャライザ
init?<T>(codingKey: T)
init?<T>(codingKey: T)
init(from: any Decoder) throws
init(from: any Decoder) throws
インスタンスプロパティ
var codingKey: any CodingKey
var codingKey: any CodingKey
var hashValue: Int
インスタンスメソッド
func encode(to: any Encoder) throws
func encode(to: any Encoder) throws
func hash(into: inout Hasher)
型エイリアス
typealias AtomicOptionalRepresentation
typealias AtomicRepresentation
Server notifications V2
App Store Server Notifications V2
object responseBodyV2
反応本文ペイロード
type signedPayload
object responseBodyV2DecodedPayload
アプリ内購入用の反応オブジェクト
object summary
データ型
type requestIdentifier
type environment
type appAppleId
type bundleId
type productId
type storefrontCountryCodes
type storefrontCountryCode
type failedCount
type succeededCount
object data
アプリのメタデータと環境
type appAppleId
type bundleId
type bundleVersion
type environment
type status
JWS 取引および更新情報
type JWSRenewalInfo
object JWSRenewalInfoDecodedPayload
type JWSTransaction
object JWSTransactionDecodedPayload
外部購入の反応オブジェクト
object externalPurchaseToken
外部購入トークンフィールド
type externalPurchaseId
type tokenCreationDate
自動更新サブスクリプションの更新日を延長
サブスクリプション更新日を延長する
すべてのアクティブな加入者のサブスクリプション更新日を延長
サブスクリプション更新日延長のステータスを取得する
Object ExtendRenewalDateRequest
要求データの型
type extendByDays
type extendReasonCode
type requestIdentifier
Object ExtendRenewalDateResponse
応答データの型
type effectiveDate
type originalTransactionId
type success
type webOrderLineItemId
object MassExtendRenewalDateRequest
データの型
type extendByDays
type extendReasonCode
string productId
type requestIdentifier
type storefrontCountryCode
type storefrontCountryCodes
object MassExtendRenewalDateResponse
object MassExtendRenewalDateStatusResponse
データ型
type complete
type completeDate
type failedCount
type succeededCount
消費要求情報
type consumptionRequestReason
Response types
type notificationType
type subtype
typeversion
type signedDate
type notificationUUID
S
T
U
V
W
XYZ