RPC Argument Types

class Align(Enum<left, center, right>)

The strategy for aligning text in a PhoneIoT control such as PhoneIoT.addLabel().

Base Type: Enum()

Options (case insensitive): left, center, right

class Any()

A value of any type.

class List(Any)

A list of (zero or more) values.

Base Type: Any()

class ArrestAgeCategory(Enum<All, Under 10, 10-12, 13-14, 15, 16, ...>)

A statistical category for the age of a perpetrator in the FBICrimeData service.

Base Type: Enum()

Options (case insensitive): All, Under 10, 10-12, 13-14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25-29, 30-34, 35-39, 40-44, 45-49, 50-54, 55-59, 60-64, 65 and over

class ArrestCategory(Enum<violent crime, property crime, gambling, society, all>)

Reason for arrest or type of crime.

Base Type: Enum()

Options (case insensitive): violent crime, property crime, gambling, society, all

class ArticleSection(Enum<Arts, Automobiles, Books, Business, Climate, Education, ...>)

The type of article to retrieve from the NewYorkTimes service.

Base Type: Enum()

Options (case insensitive): Arts, Automobiles, Books, Business, Climate, Education, Fashion, Food, Health, Home, Insider, Magazine, Movies, New York Region, Obituaries, Opinion, Politics, Real Estate, Science, Sports, Sunday Review, Technology, Theater, T Magazine, Travel, Upshot, US, World, U.S.

class BestSellerList(Enum<Combined Print & E-Book Fiction, Combined Print & E-Book Nonfiction, Hardcover Fiction, Hardcover Nonfiction, Paperback Trade Fiction, Paperback Mass-Market Fiction, ...>)

An item from the NewYorkTimes service’s best sellers list.

Base Type: Enum()

Options (case insensitive): Combined Print & E-Book Fiction, Combined Print & E-Book Nonfiction, Hardcover Fiction, Hardcover Nonfiction, Paperback Trade Fiction, Paperback Mass-Market Fiction, Paperback Nonfiction, E-Book Fiction, E-Book Nonfiction, Hardcover Advice & Misc., Paperback Advice & Misc., Advice, How-To & Miscellaneous, Hardcover Graphic Books, Paperback Graphic Books, Manga, Combined Hardcover & Paperback Fiction, Combined Hardcover & Paperback Nonfiction, Children’s Chapter Books, Children’s Middle Grade, Children’s Middle Grade E-Book, Children’s Middle Grade Hardcover, Children’s Middle Grade Paperback, Children’s Paperback Books, Children’s Picture Books, Children’s Series, Young Adult, Young Adult E-Book, Young Adult Hardcover, Young Adult Paperback, Animals, Audio Fiction, Audio Nonfiction, Business, Celebrities, Crime and Punishment, Culture, Education, Espionage, Expeditions, Fashion, Manners and Customs, Food and Diet, Games and Activities, Graphic Books and Manga, Hardcover Business Books, Health, Humor, Indigenous Americans, Love and Relationships, Mass Market, Middle Grade Paperback, Paperback Business Books, Parenthood and Family, Politics and American History, Race and Civil Rights, Religion, Spirituality and Faith, Science, Sports and Fitness, Travel

class Boolean(Enum<true, false>)

A true or false value.

Base Type: Enum()

Options (case insensitive): true, false

class BoundedInteger(BoundedNumber)

An integer with a minimum and/or maximum value.

Base Type: BoundedNumber()

class BoundedNumber(Number)

A number with a minimum and/or maximum value.

Base Type: Number()

class BoundedString(String)

A string (text) with a minimum and/or maximum length.

Base Type: String()

class ButtonStyle(Enum<rectangle, ellipse, square, circle>)

The style to use for displaying a PhoneIoT button, as created by PhoneIoT.addButton().

Base Type: Enum()

Options (case insensitive): rectangle, ellipse, square, circle

class Color(Integer)

A color code used by PhoneIoT. You can create color codes with PhoneIoT.getColor().

Base Type: Integer()

class ConceptType(Enum<Descriptor, Location, Person, Organization, Public Company, Title, ...>)

They type of information to retrieve from the NewYorkTimes service.

Base Type: Enum()

Options (case insensitive): Descriptor, Location, Person, Organization, Public Company, Title, Topic

class Date(Any)

A calendar date.

Base Type: Any()

class DayWeekOrMonth(Enum<day, week, month>)

A time period used by the NewYorkTimes service.

Base Type: Enum()

Options (case insensitive): day, week, month

class Device(BoundedString<4, 12>)

A PhoneIoT device ID. The device must be connected to be valid.

Base Type: BoundedString()

class Enum(String)

A string with a restricted set of valid values.

Base Type: String()

class Fit(Enum<fit, zoom, stretch>)

The strategy for positioning an image in a PhoneIoT image display, as created by PhoneIoT.addImageDisplay().

Base Type: Enum()

Options (case insensitive): fit, zoom, stretch

class FontSize(BoundedNumber<0.1, 10.0>)

The font size of text in a PhoneIoT control.

Base Type: BoundedNumber()

class Function(Any)

A block of code that can be executed.

Base Type: Any()

class Integer(Number)

A whole number.

Base Type: Number()

class Intent(Object<name, utterances, slots, handler>)

An object that holds information about an Alexa intent.

Base Type: Object()

Fields:

  • name: String
  • utterances: List<String>?
  • slots: List<Slot>?
  • handler: Function
class Latitude(BoundedNumber<-90, 90>)

A latitude position in degrees [-90, 90].

Base Type: BoundedNumber()

class LineType(Enum<lines, points, linespoints, impulses, dots, steps, ...>)

The style of line to use for Chart plots.

Base Type: Enum()

Options (case insensitive): lines, points, linespoints, impulses, dots, steps, fsteps, boxes, boxplot

class Longitude(BoundedNumber<-180, 180>)

A longitude position in degrees [-180, 180].

Base Type: BoundedNumber()

class MortalityCategory(Enum<deaths 0-14, deaths 15-64, deaths 65-74, deaths 75-84, deaths 85+, deaths total, ...>)

A specific category of data in the HumanMortalityDatabase service.

Base Type: Enum()

Options (case insensitive): deaths 0-14, deaths 15-64, deaths 65-74, deaths 75-84, deaths 85+, deaths total, rate 0-14, rate 15-64, rate 65-74, rate 75-84, rate 85+, rate total

class Number(Any)

Any numeric value.

Base Type: Any()

class Object(Any)

A set named fields with values. This is constructed as a list of lists, where the inner lists have two values: the field name and value.

Base Type: Any()

class OffenseArrest(Enum<aggravated assault, all other offenses, arson, burglary, curfew, disorderly conduct, ...>)

Arrest Demographic Data

Base Type: Enum()

Options (case insensitive): aggravated assault, all other offenses, arson, burglary, curfew, disorderly conduct, dui, drug grand total, drug possession marijuana, drug possession opium, drug possession other, drug possession subtotal, drug possession synthetic, drug sales marijuana, drug sales opium, drug sales other, drug sales subtotal, drug sales synthetic, drunkenness, embezzlement, forgery, fraud, gambling all other, gambling bookmaking, gambling numbers, gambling total, human trafficking commerical, human trafficking servitude, larceny, liqour laws, motor vehcile theft, murder, offense against family, prostitution, prostitution assisting, prostitution prostitution, prostitution purchasing, rape, robbery, runaway, sexoffenses, simple assault, stolen property, suspicion, vagrancy, vandalism, weapons

class OffenseData(Enum<aggravated assault, all other larceny, all other offenses, animal cruelty, arson, assisting or promoting prostitution, ...>)

NIBRS Offense Count

Base Type: Enum()

Options (case insensitive): aggravated assault, all other larceny, all other offenses, animal cruelty, arson, assisting or promoting prostitution, bad checks, betting, bribery, burglary breaking and entering, counterfeiting forgery, credit card automated teller machine fraud, destruction damage vandalism of property, driving under the influence, drug equipment violations, drug violations, drunkenness, embezzlement, extortion blackmail, false pretenses swindle confidence game, fondling, gambling equipment violation, hacking computer invasion, human trafficking commerical sex acts, human trafficking commerical involuntary servitude, identity theft, impersonation, incest, intimidation, justifiable homicide, kidnapping abduction, motor vehicle theft, murder and nonnegligent manslaughter, negligent manslaughter, operating promoting assiting gambling, curfew loitering vagrancy violations, peeping tom, pocket picking, pornography obscence material, prostitution, purchasing prostitution, purse snatching, rape, robbery, sexual assault with an object, sex offenses non forcible, shoplifting, simple assault, sodomy, sports tampering, statutory rape, stolen property offenses, theft from building, theft from coin operated machine or device, theft from motor vehicle, theft of motor vehicle-parts or accessories, weapon law violation, welfare fraud, wire fraud, not specified, liquor law violations, crime against person, crime against property, crime against society, assault offenses, homicide offenses, human trafficking offenses, sex offenses, fraud offenses, larceny theft offenses, drugs narcotic offenses, gambling offenses, prostitution offenses, all offenses

class OffenseDataOpt(Enum<count, weapons, linked offense, suspect using, criminal activity, property recovered, ...>)

Type of information to get options for offense data.

Base Type: Enum()

Options (case insensitive): count, weapons, linked offense, suspect using, criminal activity, property recovered, property stolen, bias

class OffenseSupplemental(Enum<burglary, robbery, not specified, motor vehicle theft, larceny>)

Supplemental Data Count

Base Type: Enum()

Options (case insensitive): burglary, robbery, not specified, motor vehicle theft, larceny

class OffenseVictim(Enum<aggravated assault, burglary, larceny, motor vehicle theft, homicide, rape, ...>)

NIBRS Victim Demographic Count

Base Type: Enum()

Options (case insensitive): aggravated assault, burglary, larceny, motor vehicle theft, homicide, rape, robbery, arson, violent crime, property crime

class Position(BoundedNumber<0, 100>)

The position of a PhoneIoT control as a percentage of the screen from the top left corner.

Base Type: BoundedNumber()

class SensorPeriod(BoundedNumber<100>)

An update period (interval) for PhoneIoT sensors. This is used by PhoneIoT.listenToSensors() to start receiving a stream of periodic update messages.

Base Type: BoundedNumber()

class Size(BoundedNumber<0, 100>)

The size of a PhoneIoT control as a percentage of the screen.

Base Type: BoundedNumber()

class SkillCategory(Enum<ALARMS_AND_CLOCKS, ASTROLOGY, BUSINESS_AND_FINANCE, CALCULATORS, CALENDARS_AND_REMINDERS, CHILDRENS_EDUCATION_AND_REFERENCE, ...>)

A category description for an Alexa skill.

Base Type: Enum()

Options (case insensitive): ALARMS_AND_CLOCKS, ASTROLOGY, BUSINESS_AND_FINANCE, CALCULATORS, CALENDARS_AND_REMINDERS, CHILDRENS_EDUCATION_AND_REFERENCE, CHILDRENS_GAMES, CHILDRENS_MUSIC_AND_AUDIO, CHILDRENS_NOVELTY_AND_HUMOR, COMMUNICATION, CONNECTED_CAR, COOKING_AND_RECIPE, CURRENCY_GUIDES_AND_CONVERTERS, DATING, DELIVERY_AND_TAKEOUT, DEVICE_TRACKING, EDUCATION_AND_REFERENCE, EVENT_FINDERS, EXERCISE_AND_WORKOUT, FASHION_AND_STYLE, FLIGHT_FINDERS, FRIENDS_AND_FAMILY, GAME_INFO_AND_ACCESSORY, GAMES, HEALTH_AND_FITNESS, HOTEL_FINDERS, KNOWLEDGE_AND_TRIVIA, MOVIE_AND_TV_KNOWLEDGE_AND_TRIVIA, MOVIE_INFO_AND_REVIEWS, MOVIE_SHOWTIMES, MUSIC_AND_AUDIO_ACCESSORIES, MUSIC_AND_AUDIO_KNOWLEDGE_AND_TRIVIA, MUSIC_INFO_REVIEWS_AND_RECOGNITION_SERVICE, NAVIGATION_AND_TRIP_PLANNER, NEWS, NOVELTY, ORGANIZERS_AND_ASSISTANTS, PETS_AND_ANIMAL, PODCAST, PUBLIC_TRANSPORTATION, RELIGION_AND_SPIRITUALITY, RESTAURANT_BOOKING_INFO_AND_REVIEW, SCHOOLS, SCORE_KEEPING, SELF_IMPROVEMENT, SHOPPING, SMART_HOME, SOCIAL_NETWORKING, SPORTS_GAMES, SPORTS_NEWS, STREAMING_SERVICE, TAXI_AND_RIDESHARING, TO_DO_LISTS_AND_NOTES, TRANSLATORS, TV_GUIDES, UNIT_CONVERTERS, WEATHER, WINE_AND_BEVERAGE, ZIP_CODE_LOOKUP

class SliderStyle(Enum<slider, progress>)

The style to use for displaying PhoneIoT slider, as created by PhoneIoT.addSlider().

Base Type: Enum()

Options (case insensitive): slider, progress

class Slot(Object<name, type>)

Structured data about a slot in an Alexa skill.

Base Type: Object()

Fields:

  • name: String
  • type: SlotType
class SlotType(Enum<AMAZON.DATE, AMAZON.DURATION, AMAZON.FOUR_DIGIT_NUMBER, AMAZON.NUMBER, AMAZON.Ordinal, AMAZON.PhoneNumber, ...>)

The type of slot to use in an Alexa skill.

Base Type: Enum()

Options (case insensitive): AMAZON.DATE, AMAZON.DURATION, AMAZON.FOUR_DIGIT_NUMBER, AMAZON.NUMBER, AMAZON.Ordinal, AMAZON.PhoneNumber, AMAZON.TIME, AMAZON.SearchQuery, AMAZON.Actor, AMAZON.AdministrativeArea, AMAZON.AggregateRating, AMAZON.Airline, AMAZON.Airport, AMAZON.Anaphor, AMAZON.Animal, AMAZON.Artist, AMAZON.AT_CITY, AMAZON.AT_REGION, AMAZON.Athlete, AMAZON.Author, AMAZON.Book, AMAZON.BookSeries, AMAZON.BroadcastChannel, AMAZON.City, AMAZON.CivicStructure, AMAZON.Color, AMAZON.Comic, AMAZON.Corporation, AMAZON.Country, AMAZON.CreativeWorkType, AMAZON.DayOfWeek, AMAZON.DE_CITY, AMAZON.DE_FIRST_NAME, AMAZON.DE_REGION, AMAZON.Dessert, AMAZON.DeviceType, AMAZON.Director, AMAZON.Drink, AMAZON.EducationalOrganization, AMAZON.EUROPE_CITY, AMAZON.EventType, AMAZON.Festival, AMAZON.FictionalCharacter, AMAZON.FinancialService, AMAZON.FirstName, AMAZON.Food, AMAZON.FoodEstablishment, AMAZON.Game, AMAZON.GB_CITY, AMAZON.GB_FIRST_NAME, AMAZON.GB_REGION, AMAZON.Genre, AMAZON.Landform, AMAZON.LandmarksOrHistoricalBuildings, AMAZON.Language, AMAZON.LocalBusiness, AMAZON.LocalBusinessType, AMAZON.MedicalOrganization, AMAZON.Month, AMAZON.Movie, AMAZON.MovieSeries, AMAZON.MovieTheater, AMAZON.MusicAlbum, AMAZON.MusicCreativeWorkType, AMAZON.MusicEvent, AMAZON.MusicGroup, AMAZON.Musician, AMAZON.MusicPlaylist, AMAZON.MusicRecording, AMAZON.MusicVenue, AMAZON.MusicVideo, AMAZON.Organization, AMAZON.Person, AMAZON.PostalAddress, AMAZON.Professional, AMAZON.ProfessionalType, AMAZON.RadioChannel, AMAZON.Region, AMAZON.RelativePosition, AMAZON.Residence, AMAZON.Room, AMAZON.ScreeningEvent, AMAZON.Service, AMAZON.SocialMediaPlatform, AMAZON.SoftwareApplication, AMAZON.SoftwareGame, AMAZON.Sport, AMAZON.SportsEvent, AMAZON.SportsTeam, AMAZON.StreetAddress, AMAZON.StreetName, AMAZON.TelevisionChannel, AMAZON.TVEpisode, AMAZON.TVSeason, AMAZON.TVSeries, AMAZON.US_CITY, AMAZON.US_FIRST_NAME, AMAZON.US_STATE, AMAZON.VideoGame, AMAZON.VisualModeTrigger, AMAZON.WeatherCondition, AMAZON.WrittenCreativeWorkType

class String(Any)

Any piece of text.

Base Type: Any()

class SuppDataOpt(Enum<MVT Recovered, Offense, Offense Sub Category, Larceny Type>)

Type of information to get options for supplemental data.

Base Type: Enum()

Options (case insensitive): MVT Recovered, Offense, Offense Sub Category, Larceny Type

class ToggleStyle(Enum<switch, checkbox>)

The style to use for displaying a PhoneIoT toggle control, as created by PhoneIoT.addToggle().

Base Type: Enum()

Options (case insensitive): switch, checkbox

class TouchpadStyle(Enum<rectangle, square>)

The style to use for displaying a PhoneIoT touchpad, as created by PhoneIoT.addTouchpad().

Base Type: Enum()

Options (case insensitive): rectangle, square

class USRegion(Enum<Territories, Northeast, Midwest, South, West, Other>)

The name of an (extended) US region, which includes a breakdown of the continental US.

Base Type: Enum()

Options (case insensitive): Territories, Northeast, Midwest, South, West, Other

class USTerritory(Enum<Alaska, Alabama, Arkansas, American Samoa, Arizona, California, ...>)

The name of an (extended) US territory, which includes all US states.

Base Type: Enum()

Options (case insensitive): Alaska, Alabama, Arkansas, American Samoa, Arizona, California, Colorado, Connecticut, District of Columbia, Delaware, Florida, Georgia, Hawaii, Iowa, Idaho, Illinois, Indiana, Kansas, Kentucky, Louisiana, Massachusetts, Maryland, Maine, Michigan, Minnesota, Missouri, Mississippi, Montana, Nebraska, North Carolina, North Dakota, New Hampshire, New Jersey, New Mexico, Nevada, New York, Ohio, Oklahoma, Oregon, Pennsylvania, Puerto Rico, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Utah, Virginia, Vermont, Washington, Wisconsin, West Virginia, Wyoming, Mariana Islands, US Virgin Islands, Guam

class VaccineCategory(Enum<total vaccinations, people vaccinated, people fully vaccinated, daily vaccinations raw, daily vaccinations, total vaccinations per hundred, ...>)

The category of vaccination data to retrieve from the COVID-19 service.

Base Type: Enum()

Options (case insensitive): total vaccinations, people vaccinated, people fully vaccinated, daily vaccinations raw, daily vaccinations, total vaccinations per hundred, people vaccinated per hundred, people fully vaccinated per hundred, daily vaccinations per million