Class ABMutableMultiValue

All Implemented Interfaces:
AutoCloseable

public class ABMutableMultiValue
extends ABMultiValue
  • Constructor Details

    • ABMutableMultiValue

      public ABMutableMultiValue()
  • Method Details

    • addValueAndLabel

      public int addValueAndLabel​(CFType value, String label)
      Parameters:
      value -
      label -
      Returns:
      the id of the added value.
    • addValueAndLabel

      protected int addValueAndLabel​(CFType value, CFString label)
    • insertValueAndLabel

      public int insertValueAndLabel​(CFType value, String label, long index)
      Parameters:
      value -
      label -
      index -
      Returns:
      the id of the inserted value.
    • replaceLabel

      public boolean replaceLabel​(String label, long index)
    • create

      @Deprecated public static ABMutableMultiValue create​(ABPropertyType type)
      Deprecated.
      Deprecated in iOS 9.0. use [[NSMutableArray alloc] init]
    • create

      @Deprecated public static ABMutableMultiValue create​(ABMultiValue multiValue)
      Deprecated.
      Deprecated in iOS 9.0. use [NSArray mutableCopy]
    • addValueAndLabel

      @Deprecated protected boolean addValueAndLabel​(CFType value, CFString label, IntPtr outIdentifier)
      Deprecated.
      Deprecated in iOS 9.0. use [NSMutableArray addObject:[CNLabeledValue labeledValueWithLabel:value:]]
    • insertValueAndLabel

      @Deprecated protected boolean insertValueAndLabel​(CFType value, CFString label, long index, IntPtr outIdentifier)
      Deprecated.
      Deprecated in iOS 9.0. use [NSMutableArray insertObject:[CNLabeledValue labeledValueWithLabel:value:] atIndex:]
    • removeValueAndLabel

      @Deprecated public boolean removeValueAndLabel​(long index)
      Deprecated.
      Deprecated in iOS 9.0. use [NSMutableArray removeObjectAtIndex:]
    • replaceValue

      @Deprecated public boolean replaceValue​(CFType value, long index)
      Deprecated.
      Deprecated in iOS 9.0. use [NSMutableArray replaceObjectAtIndex: withObject:[CNLabeledValue labeledValueBySettingValue:]]
    • replaceLabel

      @Deprecated protected boolean replaceLabel​(CFString label, long index)
      Deprecated.
      Deprecated in iOS 9.0. use [NSMutableArray replaceObjectAtIndex: withObject:[CNLabeledValue labeledValueBySettingLabel:]]