init
TypeScriptstatic initGoalWeight(goal: GKGoal, weight: number): GKBehaviorSwift declarationconvenience init(goal: GKGoal, weight: Float)class · iOS 9.0+ · SDK 27.1
class GKBehaviorstatic initGoalWeight(goal: GKGoal, weight: number): GKBehaviorSwift declarationconvenience init(goal: GKGoal, weight: Float)static initGoals(goals: Array<GKGoal>): GKBehaviorSwift declarationconvenience init(goals: [GKGoal])static initGoalsAndWeights(goals: Array<GKGoal>, weights: Array<_Foundation_NSNumber>): GKBehaviorSwift declarationconvenience init(goals: [GKGoal], andWeights weights: [NSNumber])static initWeightedGoals(weightedGoals: NativeMap<GKGoal, _Foundation_NSNumber>): GKBehaviorSwift declarationconvenience init(weightedGoals: [GKGoal : NSNumber])subscript(idx: number): GKGoalSwift declarationsubscript(idx: Int) -> GKGoal { get }subscript22683(goal: GKGoal): (_Foundation_NSNumber) | nullSwift declarationsubscript(goal: GKGoal) -> NSNumber! { get set }removeAllGoals(): voidSwift declarationfunc removeAllGoals()remove(goal: GKGoal): voidSwift declarationfunc remove(_ goal: GKGoal)setWeight(weight: number, goal: GKGoal): voidSwift declarationfunc setWeight(_ weight: Float, for goal: GKGoal)weight(goal: GKGoal): numberSwift declarationfunc weight(for goal: GKGoal) -> Floatget goalCount(): numberSwift declarationvar goalCount: Int { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
GKBehavior.init()
inherited init: cannot prove legal (class declares 4 custom initializers)