/** * @since Available in iOS 4.3 and later. */ public long getGradualDecoderRefresh() { if (has(CMSampleBufferAttachmentKey.GradualDecoderRefresh)) { CFNumber val = get(CMSampleBufferAttachmentKey.GradualDecoderRefresh, CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getBytesPerRowAlignment() { if (has(CVPixelBufferAttribute.BytesPerRowAlignment)) { CFNumber val = get(CVPixelBufferAttribute.BytesPerRowAlignment, CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getTransitionID() { if (has(CMSampleBufferAttachmentKey.TransitionID)) { CFNumber val = get(CMSampleBufferAttachmentKey.TransitionID, CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getSampleReferenceByteOffset() { if (has(CMSampleBufferAttachmentKey.SampleReferenceByteOffset)) { CFNumber val = get(CMSampleBufferAttachmentKey.SampleReferenceByteOffset, CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontPriority getPriority() { if (has(CTFontAttribute.Priority)) { CFNumber val = get(CTFontAttribute.Priority, CFNumber.class); return CTFontPriority.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFontFormat getFormat() { if (has(CTFontAttribute.Format)) { CFNumber val = get(CTFontAttribute.Format, CFNumber.class); return CTFontFormat.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public long getHorizontalSpacing() { if (has(Keys.HorizontalSpacing())) { CFNumber val = get(Keys.HorizontalSpacing(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getConstant() { if (has(Keys.Constant())) { CFNumber val = get(Keys.Constant(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getLocalID() { if (has(Keys.LocalID())) { CFNumber val = get(Keys.LocalID(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getWidth() { if (has(Keys.Width())) { CFNumber val = get(Keys.Width(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getBytesPerRow() { if (has(Keys.BytesPerRow())) { CFNumber val = get(Keys.BytesPerRow(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public long getPixelWidth() { if (has(Keys.PixelWidth())) { CFNumber val = get(Keys.PixelWidth(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 6.0 and later. */ public long getAgeOutPeriod() { if (has(Keys.AgeOutPeriod())) { CFNumber val = get(Keys.AgeOutPeriod(), CFNumber.class); return val.longValue(); } return 0; } /**
/** * @since Available in iOS 4.0 and later. */ public CMTextDisplayFlags getDisplayFlags() { if (has(Keys.DisplayFlags())) { CFNumber val = get(Keys.DisplayFlags(), CFNumber.class); return new CMTextDisplayFlags(val.longValue()); } return null; } /**
/** * @since Available in iOS 3.2 and later. */ public CTFrameProgression getProgression() { if (has(Keys.Progression())) { CFNumber val = get(Keys.Progression(), CFNumber.class); return CTFrameProgression.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CGImagePropertyOrientation getOrientation() { if (has(Keys.Orientation())) { CFNumber val = get(Keys.Orientation(), CFNumber.class); return CGImagePropertyOrientation.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 7.0 and later. */ public CGImagePropertyOrientation getOrientation() { if (has(Keys.DestinationOrientation())) { CFNumber val = get(Keys.DestinationOrientation(), CFNumber.class); return CGImagePropertyOrientation.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 7.0 and later. */ public SecRevocationPolicyFlags getRevocationFlags() { if (has(Keys.RevocationFlags())) { CFNumber val = get(Keys.RevocationFlags(), CFNumber.class); return new SecRevocationPolicyFlags(val.longValue()); } return null; } /**
/** * @since Available in iOS 4.0 and later. */ public CMTextJustification getVerticalJustification() { if (has(Keys.VerticalJustification())) { CFNumber val = get(Keys.VerticalJustification(), CFNumber.class); return CMTextJustification.valueOf(val.longValue()); } return null; } /**
/** * @since Available in iOS 4.2 and later. */ public CTFramePathFillRule getPathFillRule() { if (has(Keys.PathFillRule())) { CFNumber val = get(Keys.PathFillRule(), CFNumber.class); return CTFramePathFillRule.valueOf(val.longValue()); } return null; } /**