All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.healthkit.HKUnit Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.healthkit;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.foundation.*;
/**/

/**/
/**
 * @since Available in iOS 8.0 and later.
 */
/**/
/**/@Library("HealthKit") @NativeClass/**/
/**/public/**/ class /**/HKUnit/**/ 
    extends /**/NSObject/**/ 
    /**//**/ {

    /**/public static class HKUnitPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(HKUnit.class); }/**/
    /**/
    public static final double MolarMassBloodGlucose = 180.15588000005408;
    /**/
    /**/
    public HKUnit() {}
    protected HKUnit(SkipInit skipInit) { super(skipInit); }
    /**/
    /**/
    @Property(selector = "unitString")
    public native String getUnitString();
    /**/
    /**//**/
    /**/
    @Method(selector = "isNull")
    public native boolean isNull();
    @Method(selector = "unitFromString:")
    public static native HKUnit fromString(String string);
    @Method(selector = "unitFromMassFormatterUnit:")
    public static native HKUnit fromMassFormatterUnit(NSMassFormatterUnit massFormatterUnit);
    @Method(selector = "massFormatterUnitFromUnit:")
    public static native NSMassFormatterUnit createMassFormatterUnit(HKUnit unit);
    @Method(selector = "unitFromLengthFormatterUnit:")
    public static native HKUnit fromLengthFormatterUnit(NSLengthFormatterUnit lengthFormatterUnit);
    @Method(selector = "lengthFormatterUnitFromUnit:")
    public static native NSLengthFormatterUnit createLengthFormatterUnit(HKUnit unit);
    @Method(selector = "unitFromEnergyFormatterUnit:")
    public static native HKUnit fromEnergyFormatterUnit(NSEnergyFormatterUnit energyFormatterUnit);
    @Method(selector = "energyFormatterUnitFromUnit:")
    public static native NSEnergyFormatterUnit createEnergyFormatterUnit(HKUnit unit);
    @Method(selector = "gramUnitWithMetricPrefix:")
    public static native HKUnit gram(HKMetricPrefix prefix);
    @Method(selector = "gramUnit")
    public static native HKUnit gram();
    @Method(selector = "ounceUnit")
    public static native HKUnit ounce();
    @Method(selector = "poundUnit")
    public static native HKUnit pound();
    @Method(selector = "stoneUnit")
    public static native HKUnit stone();
    @Method(selector = "moleUnitWithMetricPrefix:molarMass:")
    public static native HKUnit mole(HKMetricPrefix prefix, double gramsPerMole);
    @Method(selector = "moleUnitWithMolarMass:")
    public static native HKUnit mole(double gramsPerMole);
    @Method(selector = "meterUnitWithMetricPrefix:")
    public static native HKUnit meter(HKMetricPrefix prefix);
    @Method(selector = "meterUnit")
    public static native HKUnit meter();
    @Method(selector = "inchUnit")
    public static native HKUnit inch();
    @Method(selector = "footUnit")
    public static native HKUnit foot();
    @Method(selector = "mileUnit")
    public static native HKUnit mile();
    @Method(selector = "literUnitWithMetricPrefix:")
    public static native HKUnit liter(HKMetricPrefix prefix);
    @Method(selector = "literUnit")
    public static native HKUnit liter();
    @Method(selector = "fluidOunceUSUnit")
    public static native HKUnit fluidOunceUS();
    @Method(selector = "fluidOunceImperialUnit")
    public static native HKUnit fluidOunceImperial();
    @Method(selector = "pintUSUnit")
    public static native HKUnit pintUS();
    @Method(selector = "pintImperialUnit")
    public static native HKUnit pintImperial();
    @Method(selector = "pascalUnitWithMetricPrefix:")
    public static native HKUnit pascal(HKMetricPrefix prefix);
    @Method(selector = "pascalUnit")
    public static native HKUnit pascal();
    @Method(selector = "millimeterOfMercuryUnit")
    public static native HKUnit millimeterOfMercury();
    @Method(selector = "centimeterOfWaterUnit")
    public static native HKUnit centimeterOfWater();
    @Method(selector = "atmosphereUnit")
    public static native HKUnit atmosphere();
    @Method(selector = "secondUnitWithMetricPrefix:")
    public static native HKUnit second(HKMetricPrefix prefix);
    @Method(selector = "secondUnit")
    public static native HKUnit second();
    @Method(selector = "minuteUnit")
    public static native HKUnit minute();
    @Method(selector = "hourUnit")
    public static native HKUnit hour();
    @Method(selector = "dayUnit")
    public static native HKUnit day();
    @Method(selector = "jouleUnitWithMetricPrefix:")
    public static native HKUnit joule(HKMetricPrefix prefix);
    @Method(selector = "jouleUnit")
    public static native HKUnit joule();
    @Method(selector = "calorieUnit")
    public static native HKUnit calorie();
    @Method(selector = "kilocalorieUnit")
    public static native HKUnit kilocalorie();
    @Method(selector = "degreeCelsiusUnit")
    public static native HKUnit degreeCelsius();
    @Method(selector = "degreeFahrenheitUnit")
    public static native HKUnit degreeFahrenheit();
    @Method(selector = "kelvinUnit")
    public static native HKUnit kelvin();
    @Method(selector = "siemenUnitWithMetricPrefix:")
    public static native HKUnit siemen(HKMetricPrefix prefix);
    @Method(selector = "siemenUnit")
    public static native HKUnit siemen();
    @Method(selector = "countUnit")
    public static native HKUnit count();
    @Method(selector = "percentUnit")
    public static native HKUnit percent();
    @Method(selector = "unitMultipliedByUnit:")
    public native HKUnit multiplyBy(HKUnit unit);
    @Method(selector = "unitDividedByUnit:")
    public native HKUnit divideBy(HKUnit unit);
    @Method(selector = "unitRaisedToPower:")
    public native HKUnit raiseToPower(@MachineSizedSInt long power);
    @Method(selector = "reciprocalUnit")
    public native HKUnit reciprocalUnit();
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy