Class INSpeakableString

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, INSpeakable, ObjCProtocol

public class INSpeakableString
extends NSObject
implements INSpeakable, NSSecureCoding
Since:
Available in iOS 10.0 and later.
  • Constructor Details

    • INSpeakableString

      protected INSpeakableString()
    • INSpeakableString

      protected INSpeakableString​(NSObject.Handle h, long handle)
    • INSpeakableString

      protected INSpeakableString​(NSObject.SkipInit skipInit)
    • INSpeakableString

      @Deprecated public INSpeakableString​(String identifier, String spokenPhrase, String pronunciationHint)
      Deprecated.
      Deprecated in iOS 11.0. Please use -initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:
      Since:
      Available in iOS 10.0 and later.
    • INSpeakableString

      public INSpeakableString​(String spokenPhrase)
      Since:
      Available in iOS 10.2 and later.
    • INSpeakableString

      public INSpeakableString​(NSCoder coder)
  • Method Details

    • createWithVocabulary

      public static INSpeakableString createWithVocabulary​(String vocabularyIdentifier, String spokenPhrase, String pronunciationHint)
    • getSpokenPhrase

      public String getSpokenPhrase()
      Specified by:
      getSpokenPhrase in interface INSpeakable
    • getPronunciationHint

      public String getPronunciationHint()
      Specified by:
      getPronunciationHint in interface INSpeakable
    • getVocabularyIdentifier

      public String getVocabularyIdentifier()
      Specified by:
      getVocabularyIdentifier in interface INSpeakable
    • getAlternativeSpeakableMatches

      public NSArray<?> getAlternativeSpeakableMatches()
      Specified by:
      getAlternativeSpeakableMatches in interface INSpeakable
    • getIdentifier

      @Deprecated public String getIdentifier()
      Deprecated.
      Deprecated in iOS 11.0. Please use vocabularyIdentifier
      Specified by:
      getIdentifier in interface INSpeakable
      Since:
      Available in iOS 10.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • initWithVocabulary

      protected long initWithVocabulary​(String vocabularyIdentifier, String spokenPhrase, String pronunciationHint)
    • init

      @Deprecated protected long init​(String identifier, String spokenPhrase, String pronunciationHint)
      Deprecated.
      Deprecated in iOS 11.0. Please use -initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:
      Since:
      Available in iOS 10.0 and later.
    • init

      protected long init​(String spokenPhrase)
      Since:
      Available in iOS 10.2 and later.
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)